guides_shape_grey | R Documentation |
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.
guides_shape_grey(colour = grey, ...)
guides_linewidth_grey(colour = grey, ...)
guides_size_grey(colour = grey, ...)
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 |
A ggplot guides.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.