Re: [R] help with making figures

2012-10-06 Thread Uwe Ligges
On 05.10.2012 21:59, megalops wrote: Bert, Can you help me understand your suggestion? Megalops31, which suggestion? You failed to quote former messages! I don't understand how I can include all 30 sites under the label called site in the xypot What is an xypot example? Please read the

Re: [R] help with making figures

2012-10-05 Thread Jean V Adams
It's helpful to provide reproducible code in your posting to R help. The dput() function can be used to share some of your data. For example, you might have used dput(mydata[1:10, 1:10]) # here's some data I made up as an example ... df - structure(list(`2000` = c(44L, 31L, 55L, 83L,

Re: [R] help with making figures

2012-10-05 Thread megalops
Bert, Can you help me understand your suggestion? I don't understand how I can include all 30 sites under the label called site in the xypot code example you provided. -- View this message in context: http://r.789695.n4.nabble.com/help-with-making-figures-tp4645074p4645216.html Sent from

[R] help with making figures

2012-10-04 Thread megalops
I need to make about 30 figures and I am trying to create a program in R that will make my life a lot easier. First I will tell you how my data is setup. I have 30 sites and then data for each year at the site. I have 10 years of data for each site. Below is a small chunk of my data to show

Re: [R] help with making figures

2012-10-04 Thread Bert Gunter
First convert your data from short fat to long thin format: Column headings for the transformed data frame are: Year Site Result This can be done in a variety of ways, but check out the reshape2 package or the reshape function ins the stats package. Once you have the data in this form,