scale_fill_focus: scale_fill_focus

Description Usage Arguments Examples

View source: R/scale_fill_focus.R

Description

@description Color scale for 'fill' aesthetics. This is an alternative use for ggfocus that uses the usual grammar of graphics.

Usage

1
2
scale_fill_focus(focus_levels, color_focus = NULL,
  color_other = "gray")

Arguments

focus_levels

character vector with levels to focus.

color_focus

'fill' color for focused levels.

color_other

'fill' color for other levels.

Examples

1
2
 p <- ggplot(iris,aes(x = Petal.Length, group = Species, fill = Species)) + geom_histogram() +
  scale_fill_focus(focus_levels = "versicolor", color_focus = "red")

Freguglia/ggfocus documentation built on Jan. 6, 2019, 3:08 a.m.