View source: R/decorate_grob.R
split_text_grob | R Documentation |
Dynamically wrap text.
split_text_grob(
text,
x = grid::unit(0.5, "npc"),
y = grid::unit(0.5, "npc"),
width = grid::unit(1, "npc"),
just = "centre",
hjust = NULL,
vjust = NULL,
default.units = "npc",
name = NULL,
gp = grid::gpar(),
vp = NULL
)
text |
( |
x |
A numeric vector or unit object specifying x-values. |
y |
A numeric vector or unit object specifying y-values. |
width |
( |
just |
The justification of the text
relative to its (x, y) location. If there are two values, the first
value specifies horizontal justification and the second value specifies
vertical justification. Possible string values are: |
hjust |
A numeric vector specifying horizontal justification.
If specified, overrides the |
vjust |
A numeric vector specifying vertical justification.
If specified, overrides the |
default.units |
A string indicating the default units to use
if |
name |
A character identifier. |
gp |
An object of class |
vp |
A Grid viewport object (or NULL). |
This code is taken from R Graphics by Paul Murell, 2nd edition
A text grob
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.