[R] help plotting my data

JS Huang js.huang at protective.com
Mon Feb 2 18:08:42 CET 2015


Hi,

   I hope the following works for you.  The plot is:  Rplot.png
<http://r.789695.n4.nabble.com/file/n4702679/Rplot.png>  

> data <- read.table("rHelp_20150202.txt",header=TRUE)
> order.data <- order(data$counts,decreasing=TRUE)
> order.data
 [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
25 26 27 28 29
> plot(data$counts ~ factor(data$role,levels=data$role[order.data]))





--
View this message in context: http://r.789695.n4.nabble.com/help-plotting-my-data-tp4702583p4702679.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list