You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mara Averick edited this page Nov 2, 2018
·
4 revisions
Note: The ggplot2 wiki is no longer maintained, please use the ggplot2 website instead!
Text labels
library(ggplot2)
p= ggplot(data.frame(x=1,y=1,label="alpha"))
p+ geom_text(aes(x,y,label=label))
## use the parse argument to interpret the plotmath expression
( p2=p+ geom_text(aes(x,y,label=label), parse=TRUE) )