Description Usage Arguments Examples
View source: R/ggplot_themes.R
Personal theme for making plots
1 2 3 4 5 6 7 | theme_ubuntu(
base_size = 12,
base_family = "Ubuntu",
base_line_size = base_size/20,
base_rect_size = base_size/20,
legend = "none"
)
|
base_size |
Base font size |
base_family |
Base font family |
base_line_size |
Standard line size |
base_rect_size |
Standard rectangle size |
legend |
Default value for theme(legend.position) |
1 2 3 4 5 6 | library(ggplot2)
#Don't use Ubuntu font because it may not be loaded
ggplot() +
geom_point(data = mtcars, aes(x = disp, y = mpg)) +
theme_ubuntu(base_family = "sans")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.