Learn R Programming

sjPlot (version 1.8.1)

sj.setGeomColors: Helper function to set geom colors

Description

Helper function to set geom colors

Usage

sj.setGeomColors(plot, geom.colors, pal.len, show.guide = TRUE,
  labels = NULL, reverse.colors = FALSE)

Arguments

plot
a ggplot object where scales (geom colors) should be set
geom.colors
the color palette for the scales to be used
pal.len
the length of the required colors in geom.colors
show.guide
whether or not legend should be displayed
labels
a character vector with legend labels
reverse.colors
If TRUE, the color scale is reversed.