scale_color_all: Great a better coloring scheme for taxon abundance barcharts

View source: R/plotting.R

scale_color_allR Documentation

Great a better coloring scheme for taxon abundance barcharts

Description

The default coloring scheme for ggplot2 makes it hard to distinguish among data points in complex bar charts (eg., taxa plots). This function is a wrapper around scale_color_continuous() which changes the color scheme used.

Usage

scale_color_all(..., return_hex = FALSE)

Arguments

...

Parameters passed to scale_colorl_manual()

return_hex

Return a vector of color hexidecimals instead of a plotting object.

Value

ScaleContinuous/ggproto object or vector

Examples

ggplot(mpg, aes(cty, hwy, color=class)) +
  geom_point() +
  scale_color_all()

leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.