custom_theme | R Documentation |
Themes a ggplot object
custom_theme()
A themed ggplot object
# if(!require(dplyr)){library(dplyr)} #if(!require(ggplot2)){library(ggplot2)} mtcars <- dplyr::mutate(mtcars,am=as.factor(am)) ggplot_obj <- ggplot2::ggplot( mtcars) + ggplot2::facet_wrap(~am)+ ggplot2::labs(title = 'Graph Title')+ ggplot2::geom_point(ggplot2::aes(disp,mpg,col=mpg)) ggplot_obj + custom_theme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.