powered by
A minimalist ggplot2 theme which removes most background elements and lines.
ggplot2
theme_basic( base_size = 12, base_family = NULL, base_color = "black", base_line_size = base_size/12, base_rect_size = base_size/12 )
A numeric. Base font size.
A numeric. Base font family.
A character. Base color for lines and text.
A numeric. Base line element size.
A numeric. Base rectangle element size.
library(ggplot2) ggplot(datasets::mtcars, aes(x = wt, y = hp, color = as.factor(cyl))) + geom_point() + theme_basic()
Run the code above in your browser using DataLab