set_plot_theme | R Documentation |
This function sets a coherent plot theme for functions.
set_plot_theme(font = "Swedish Gothic Thin")
font |
Font family to use for text elements. Depends on extrafont package. |
No return value, used as theme for ggplots
library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg, color = as.factor(cyl))) +
geom_point(size = 4) +
set_plot_theme()
ggplot(mtcars, aes(x = wt, y = mpg, color = as.factor(cyl))) +
geom_point(size = 4) +
set_plot_theme(font = "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.