require("ggplot2")
p <- ggplot2(mtcars, aes(x = mpg, y = wt)) +
geom_point()
p + theme_pander()
panderOptions('graph.grid.color', 'red')
p + theme_pander()
p <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) + geom_point()
p + theme_pander() + scale_color_pander()
## standard examples of the ggtheme package
ggplot(diamonds, aes(x = carat, y = price, colour = cut)) +
geom_point() +
theme_pander() +
scale_colour_pander()
ggplot(diamonds, aes(clarity, fill = cut)) +
geom_bar() +
scale_fill_pander() +
theme_pander()Run the code above in your browser using DataLab