Skip to content

Commit

Permalink
Added text to show how to add color to legends for all levels, even w…
Browse files Browse the repository at this point in the history
…hen no data for some levels exists.

Fixes #5869
  • Loading branch information
agmurray committed Aug 15, 2024
1 parent b1a7a58 commit beb08e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/layer.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
#' `NA`, the default, includes if any aesthetics are mapped.
#' `FALSE` never includes, and `TRUE` always includes.
#' It can also be a named logical vector to finely select the aesthetics to
#' display.
#' display. This option can be used to include color for all levels, even
#' when no data exists, use `TRUE`. If 'FALSE', all levels are shown in legend,
#' but omitting colors for unobserved levels.
#' @param inherit.aes If `FALSE`, overrides the default aesthetics,
#' rather than combining with them. This is most useful for helper functions
#' that define both data and aesthetics and shouldn't inherit behaviour from
Expand Down

0 comments on commit beb08e5

Please sign in to comment.