scale_color_focus: scale_color_focus

Description Usage Arguments Examples

View source: R/scale_color_focus.R

Description

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

Usage

1
2
scale_color_focus(focus_levels, color_focus = NULL,
  color_other = "black")

Arguments

focus_levels

character vector with levels to focus.

color_focus

'color' for focused levels.

color_other

'color' for other levels.

Examples

1
2
 p <- ggplot(iris,aes(x = Petal.Length, y = Sepal.Length, color = Species)) + geom_point() +
 scale_color_focus(focus_levels = "setosa", color_focus = "red")

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