| geom_text {ggplot2} |
R Documentation |
Text
Description
<br /> Text geoms are useful for labeling plots. They can be used by themselves <br /> as scatterplots or in combination with other geoms, for example, for <br /> labeling points or for annotating the height of bars. geom_text() adds <br /> only text to the plot. geom_label() draws a rectangle behind the text, <br /> making it easier to read.
Usage
geom_text(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
parse = FALSE,
nudge.x = 0,
nudge.y = 0,
check.overlap = FALSE,
na.rm = FALSE,
show.legend = FALSE,
inherit.aes = TRUE,
color = "steelblue",
which = NULL,
alpha = 1,
size = NULL,
... = NULL);
Arguments
mapping
[as ggplotReader]
data
The data to be displayed in this layer. There are three options:
If NULL, the Default, the data Is inherited from the plot data As specified In the Call To ggplot().
A data.frame, Or other Object, will override the plot data. All objects will be fortified To produce a data frame. See fortify() For which variables will be created.
stat
[as string]
position
[as string]
parse
[as boolean]
nudge.x
[as double]
nudge.y
[as double]
check.overlap
[as boolean]
na.rm
[as boolean]
show.legend
[as boolean]
inherit.aes
[as boolean]
color
args
[as list]
env
[as Environment]
Details
Authors
SMRUCC genomics institute
Value
this function returns data object of type
ggplotLayer.
clr value class
Examples
[Package
ggplot2 version 1.0.0.0
Index]