Description Usage Arguments Value Examples
A basic ggplot2 theme for use in statistics courses at Northland College.
1 2 3 4 5 6 | theme_NCStats(
base_size = 12,
base_family = "",
base_line_size = base_size/24,
base_rect_size = base_size/24
)
|
base_size |
The base font size. |
base_family |
The base font family. |
base_line_size |
The base size for line elements. |
base_rect_size |
The base size for rect elements. |
A function that will apply a theme to a ggplot2 object.
1 2 3 4 5 6 | p <- ggplot2::ggplot(data=data.frame(x=c(1,2,3,1,3,1),
y=c(1,3,1,2.3,2.3,1)),
mapping=ggplot2::aes(x=x,y=y)) +
ggplot2::geom_polygon()
p
p + theme_NCStats()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.