View source: R/ggannotate_npc.R
ggannotate_npc | R Documentation |
This function Creates an ggplot2 object with annotation.
ggannotate_npc(
geom = "text",
label,
label_position = "lefttop",
label_justification = NULL,
...,
na.rm = FALSE
)
geom |
character Name of geom to use for annotation. Can be one of
|
label |
the character which will be added to the plot, will be connected
by |
label_position |
the position where the label will added, can be a
numeric vector of length two or a character vector with length one (one of
|
label_justification |
label_justification must be a element-two (or one) character or numeric vector. Possible string values are: "left", "right", "centre", "center", "bottom", and "top". For numeric values, 0 means left (bottom) alignment and 1 means right (top) alignment. |
... |
Other arguments passed on to |
na.rm |
If |
a ggplot2 layer object with annotation
ggannotate_npc(label = "a", label_position = c(0.5, 0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.