[R] barchart with 3 Arguments

John Kane jrkrideau at inbox.com
Tue Aug 28 19:17:24 CEST 2012


No data is attached.  The R-help list usually strips out attachments to prevent viruses or malware spreading.

Use dput to include the data . Just do : dput(mydata) and copy the results into your email.

Also it is a good idea to include the code that you are using.



John Kane
Kingston ON Canada


> -----Original Message-----
> From: falk.hilliges at twain-systems.com
> Sent: Tue, 28 Aug 2012 08:05:47 -0700 (PDT)
> To: r-help at r-project.org
> Subject: [R] barchart with 3 Arguments
> 
> Hi @ all,
> I have a problem concerning the barplot (barchart lattice) of a
> dataframe. I
> work with the attached dataframe.
> When I try to plot this dataframe  I only get two rows plottet. When I
> try
> to plot the whole dataframe, there is message, that it is 'height' must
> be a
> vector or a matrix.
> On the y-axis, the "amount_cattle" should be displayed and on the x-axis
> the
> "year" and the "country" so that I can compare the amount over the years
> in
> each country. Each country on the x-axis needs 4 bars (2000-2003).
> I hope you can help me.
> Thanks a lot
> geophagus
> 
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context:
> http://r.789695.n4.nabble.com/barchart-with-3-Arguments-tp4641572.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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