View source: R/ggplot-extras.R
theme_cbw | R Documentation |
Theme resetting the plot title at the center (as it was in the earlier version of ggplot2)
theme_cbw(base_size = 11, base_family = "",
base_line_size = base_size/22, base_rect_size = base_size/22)
base_size |
base font size |
base_family |
base font family |
base_line_size |
base size for line elements |
base_rect_size |
base size for rect elements |
An object of class theme()
.
ggplot(ggplot2::mpg, aes(cyl, hwy)) + geom_point() + ggtitle('Centered title') + theme_cbw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.