[R] barchar or barp on multiple data
John Kane
jrkrideau at inbox.com
Tue Jan 14 21:56:20 CET 2014
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
No data. The list strips off most files. If you want to send data give the file a .txt suffix but it is much better to supply the output of dput() .
John Kane
Kingston ON Canada
> -----Original Message-----
> From: adelessafi at gmail.com
> Sent: Tue, 14 Jan 2014 19:08:59 +0100
> To: r-help at r-project.org
> Subject: [R] barchar or barp on multiple data
>
> Hello list
> I have the following data in file in attachment.
> in want to draw bars for every value of V5 in finction of V3
> grouped by V2*V1. however, each unique value
> of V4, V2 and V1 I want to draw a bar.
>
> This example is very close to want I want to do. but
> here, for each value of V3, barchart draws 2 superimposed bar.
> How to do to make them one beside another.
>
>
> Thanks
>
>
> t=read.table("actual")
> barchart( V5 ~ V3 | V2 * V1,t)
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
____________________________________________________________
FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!
More information about the R-help
mailing list