set_reference_defaults | R Documentation |
Update the "abline", "hline" and "vline" geom defaults.
set_reference_defaults(..., colour = "#121B24FF", linewidth = 0.25)
... |
Provided to require argument naming, support trailing commas etc. |
colour |
A hex code. |
linewidth |
A linewidth. |
library(ggplot2)
library(dplyr)
library(palmerpenguins)
set_blanket(theme = dark_mode_r())
set_font_defaults(colour = darkness[1])
set_reference_defaults(colour = darkness[1])
penguins |>
gg_point(
x = flipper_length_mm,
y = body_mass_g,
x_breaks_n = 4,
) +
geom_vline(xintercept = 200) +
annotate("text", x = I(0.25), y = I(0.75), label = "Here")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.