Description Usage Arguments Value Examples
Personal ggplot theme that relies on Ubuntu font.
1 2 3 | theme_ubuntu(base_size = 12, base_family = "Ubuntu",
base_line_size = base_size/20, base_rect_size = base_size/20,
tick_margins = 0.8, legend = "none")
|
base_size |
Font size. |
base_family |
Font family. |
base_line_size |
Line thickness. Relative to font size by default. |
base_rect_size |
Rectangle line thickness. Relative to font size by default. |
tick_margins |
Distance of tick values from the ticks. Larger value mean larger distance. |
legend |
Location of legend. Can be removed ("none"), "bottom", "top", "left", "right". |
A ggplot theme
1 2 3 4 5 6 | library(ggplot2)
library(extrafont)
ggplot(iris)+
geom_point(aes(x = Petal.Length, y = Petal.Width))+
theme_ubuntu()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.