Description Usage Arguments Details Value Aesthetics See Also
geom_reltext()
adds text labels to relative positions in a
ggplot panel.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. There are three options: If A A |
stat |
The statistical transformation to use on the data for this layer, as a string. |
position |
Position adjustment, either as a string, or the result of a call to a position adjustment function. |
... |
additional arguments passed to |
parse |
If |
nudge_x |
Horizontal and vertical adjustment to nudge labels by.
Useful for offsetting text from points, particularly on discrete scales.
Cannot be jointly specified with |
nudge_y |
Horizontal and vertical adjustment to nudge labels by.
Useful for offsetting text from points, particularly on discrete scales.
Cannot be jointly specified with |
check_overlap |
If |
na.rm |
If |
show.legend |
logical. Should this layer be included in the legends?
|
inherit.aes |
If |
geom_reltext()
adds text to relative positions in ggplot panels,
i.e. the position of the text is expressed as a number between 0 and 1
(lower and upper axis limits) instead of a number on the scale of the
displayed variables.
In corrmorant, it is widely used to display text labels relative to the panel margins instead of the data in the panel.
An object of class Layer
.
geom_reltext()
requires the following aesthetics:
relx (relative position on the x-axis)
rely (relative position on the y-axis)
label
In addition, it understands the same aesthetics as ggplot2::geom_text()
Used to position the output of stat_corrtext()
, stat_corrtext()
and
stat_dia_names()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.