Legend Style Of GGplot
formatLegendOfGGplot.RdStyle of legend is defined with argument legend. Overwrites previous definitions of theme(legend)
Usage
formatLegendOfGGplot(plot, legend, scaleFUN = ggplot2::scale_color_manual, ...)Arguments
- plot
(ggplot) A ggplot object.
- legend
(list) named list with style definitions, or output of
plotLegendServer- scaleFUN
(function) function to set scale, e.g.
ggplot2::scale_color_manual- ...
additional element specifications not part of base ggplot2. In general, these should also be defined in the
element treeargument. Splicing a list is also supported.