geom_richlabel | R Documentation |
A wrapper for ggtext::geom_richtext
geom_richlabel(
mapping,
label.margin = unit(2, "mm"),
label.padding = unit(0.5, "mm"),
label.color = NA,
fill = "white",
text_size = 12,
...
)
mapping |
aes() |
label.margin |
grid unit margin |
label.padding |
grid unit margin |
label.color |
color |
fill |
color |
text_size |
text size in point units |
... |
additional parameters passed to ggtext::geom_richtext |
ggtext::geom_richtext
library(tibble)
library(ggplot2)
library(dplyr)
library(WJSmisc)
tibble(x = 0, y = 0, l = "A") %>%
ggplot() +
geom_richlabel(aes(x,y,label = l))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.