guides_shape_grey {ggblanket}R Documentation

Guides for legend element colour

Description

Guides to over-ride legend elements with a grey colour

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 ggplot2::guide_legend().

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]