[R] Data values on graphics
Yuta Tamberg
yutamberg at gmail.com
Mon May 23 19:07:05 CEST 2011
zcatav wrote:
>
> How can i add data values or proportion values on bar or pie charts?
>
You can add any text or numbers to any place of a graph with this command:
> text(45,20,"some text")
where: 45 is position on the X-axis and 20 - on the Y. Note that numbers
denote the MIDDLE of the text,not its bottom-left corner. Must work
perfectly for barplots, although not sure about pie-charts.
--
View this message in context: http://r.789695.n4.nabble.com/Data-values-on-graphics-tp3543968p3544671.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list