theme_kc | R Documentation |
Similar to hrbrthemes::theme_ipsum()
theme_kc(text_size = 14, text_font = "Arial Narrow")
data |
The data frame to tabulate |
tabvar |
The variables to tabulate |
dropna |
If TRUE then drops NA values; if FALSE then includes NA values |
A ggplot2 object.
## Not run:
ggplot(mtcars, aes(y = mpg, x = wt, color = factor(am))) +
geom_point() +
geom_smooth() +
labs(x = "Weight", y = "Miles per Gallon", color = "Automatic",
caption = "Source: Author's calculations using mtcars dataset") +
theme_kc() +
theme(legend.position = "bottom")
ggplot(mtcars, aes(y = mpg, x = wt)) +
geom_point() +
geom_smooth() +
facet_wrap(vars(am), scales = "free_x") +
labs(x = "Weight", y = "Miles per Gallon",
caption = "Source: Author's calculations using mtcars dataset") +
theme_kc() +
theme(legend.position = "bottom")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.