[R] Data values on graphics

zcatav zcatav at gmail.com
Tue May 24 13:39:28 CEST 2011


Yuta Tamberg wrote:
> 
> 
> 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.
> 

It's o.k. to add text,but i mean data values representing colon.
Let's we have following table;
   A   B
1 2   3
2 4   5
3 3   6

I want to see these values (or % values) on representing bar. And if
possible R makes it automatically.
Thanks.

--
View this message in context: http://r.789695.n4.nabble.com/Data-values-on-graphics-tp3543968p3546811.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list