View source: R/color_functions.R
theme_basic | R Documentation |
Basic ggplot2 theme
theme_basic(
fontsize = 18,
fontfamily = "",
lwd = NULL,
color = "black",
grid.color = NULL,
title.face = "bold",
title.cex = 1,
axis.title.cex = 1,
axis.text.cex = 0.8,
grid.cex = 0.7,
...
)
fontsize |
Base font size |
fontfamily |
Base font family |
lwd |
Base linewidth |
color |
Base color |
grid.color |
Grid color (no grid if NULL) |
title.face |
Title face (plain/bold/...) |
title.cex |
Title size factor |
axis.title.cex |
Axis title size factor |
axis.text.cex |
Axis text size factor |
grid.cex |
Grid linewidth size factor |
... |
other parameters passed to theme(...) |
ggplot(iris, aes(Sepal.Length, Petal.Length)) + geom_point() + ggtitle("Iris") + theme_basic()
ggplot(iris, aes(Sepal.Length, Petal.Length, color = Species)) + geom_point() + ggtitle("Iris") + theme_basic(grid.color = "grey70")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.