guides_shape_grey {ggblanket} | R Documentation |
Guides for legend element colour
Description
Guides to over-ride legend elements with a grey colour
-
guides_shape_grey()
for shape -
guides_linewidth_grey()
for linewidth -
guides_size_grey()
for size.
Usage
guides_shape_grey(colour = grey, ...)
guides_linewidth_grey(colour = grey, ...)
guides_size_grey(colour = grey, ...)
Arguments
colour |
A default hex code to override the colour of the legend elements. Note, the "fill" inherits from this argument. Defaults to grey. |
... |
Other arguments passed to |
Value
A ggplot guides.
Examples
library(dplyr)
library(tidyr)
library(ggplot2)
library(palmerpenguins)
set_blanket()
penguins |>
drop_na() |>
gg_jitter(
x = species,
y = flipper_length_mm,
col = island,
mapping = aes(shape = sex),
) +
guides_shape_grey()
[Package ggblanket version 12.4.0 Index]