Create a Theme for ggplot
theme_dc.Rd
This function creates a custom theme for ggplot with several theme modifications
Examples
library(ggplot2)
library(styles)
# Create basic ggplot object
ggplotObject <- ggplot(mtcars, aes(y=mpg, x=wt, color=as.factor(cyl))) +
geom_point(size = 3, alpha = 0.5) +
scale_color_dc()
# Add the theme
ggplotObject + theme_dc()
# Add the theme with additional optional theme parameters
ggplotObject + theme_dc(legend.position = 'right')