Skip to contents

A wrapper for ggtext::geom_richtext

Usage

geom_richlabel(
  mapping,
  label.margin = unit(2, "mm"),
  label.padding = unit(0.5, "mm"),
  label.color = NA,
  fill = "white",
  text_size = 12,
  ...
)

Arguments

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

Value

ggtext::geom_richtext

Examples

library(tibble)
library(ggplot2)
library(dplyr)
library(WJSmisc)
tibble(x = 0, y = 0, l = "A") %>%
  ggplot() +
  geom_richlabel(aes(x,y,label = l))