Skip to contents

Example on a ggplot2 image

library(ggplot2)
#> Error in get(paste0(generic, ".", class), envir = get_method_env()) : 
#>   object 'type_sum.accel' not found
library(rogtemplate)

# counts (or sums of weights)
g <- ggplot(mpg, aes(class))

# Number of cars in each class:
g + geom_bar(fill = rog_orange_pal(1))
A ggplot2 image

A ggplot2 image