View source: R/stamp_text_parse.R
stamp_text_parse | R Documentation |
This function adds a text annotation layer
stamp_text_parse( x = 0, y = 0, label = "bold(italic(p)*\"-value\"<\"0.01\")", text_wrap = FALSE, char_width = 40, alpha = 1, angle = 0, color = "black", family = "Times", fontface = "bold", hjust = 0.5, lineheight = 0.85, size = 8, vjust = 0.5, xy = NULL, parse = TRUE, nudge_x = 0, nudge_y = 0 )
label |
defaults with a message about use |
alpha |
numeric between 0 and 1 indicating transparency, defaults to 1 fully opaque, zero is fully transparent |
color |
a character string indicating color, defaults to "black", for other named colors check out https://evamaerey.github.io/ggplot2_grammar_guide/named_colors |
family |
font family |
hjust |
horizontal justification, between 0 and 1, defaults to .5 |
lineheight |
spacing between lines if text is wrapped |
size |
size of text |
vjust |
vertical justification, between 0 and 1, defaults to .5 |
xy |
a data frame where the first two columns contain x and y positional values |
parse |
If TRUE, the labels will be parsed into expressions and displayed as described in ?plotmath. |
nudge_x |
Horizontal adjustment to nudge labels by. Useful for offsetting text from points, particularly on discrete scales. |
nudge_y |
Vertical adjustment to nudge labels by. Useful for offsetting text from points, particularly on discrete scales. |
# stamping text on a plot library(ggplot2) ggcanvas() + stamp_text_parse()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.