ggannotate_npc_helper: Create an ggplot2 annotation layer

View source: R/ggannotate_npc.R

ggannotate_npc_helperR Documentation

Create an ggplot2 annotation layer

Description

This function adds geoms to a plot with x and y mapping to Normalised Parent Coordinates

Usage

ggannotate_npc_helper(geom, x = NULL, y = NULL, ..., na.rm = FALSE)

Arguments

geom

character Name of geom to use for annotation. Can be one of "text" and "label".

x, y

the position of added label in Normalised Parent Coordinates(npc)

...

Other arguments passed on to layer. These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat. See geom_text and geom_label.

na.rm

If FALSE (the default), removes missing values with a warning. If TRUE silently removes missing values.

Details

See annotate

Author(s)

Yun yunyunpp96@outlook.com


Yunuuuu/yjtools documentation built on Jan. 29, 2024, 5:30 a.m.