| pub.theme | R Documentation |
Define a publication-style plot theme
pub.theme(size = 12)
size |
numeric, base font size for adapted ggplot2 theme |
This theme modifies the theme_classic theme
in ggplot2.
a ggplot theme based on theme_classic
library(ggplot2)
x <- sample(10)
y <- x + runif(10) - 0.5
df <- data.frame(x = x, y = y)
fig <- ggplot(df, aes(x = x, y = y)) +
geom_point() +
pub.theme()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.