set_geom_reference_line | R Documentation |
Update the "hline", "vline", "abline", and "curve" geom defaults.
set_geom_reference_line(..., 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_geom_font(colour = darkness[1])
set_geom_reference_line(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.