scale_fill_all: Great a better coloring scheme for taxon abundance barcharts

View source: R/plotting.R

scale_fill_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_fill_all(..., return_hex = FALSE)

Arguments

...

Parameters passed to scale_fill_manual()

return_hex

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

Value

ScaleContinuous/ggproto object or vector

Examples

ggplot(mpg, aes(fl, hwy, fill=model)) +
  geom_bar(stat='identity') +
  scale_fill_all()

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