[R] R code help to change table format

2012-07-10 Thread peziza
I am trying to input an OTU table into EstimateS, however, the format of the
OTU table has to be changed to fit the format EstimateS will accept. In R, I
would like to change the format of the OTU table (from excel).  Here is what
I need to do, take Example 1 and create Example 2.  The problem is that I
have hundreds of OTUs, so I can't do this by hand (and I'd love to have a
code that I could use for different OTU tables). 
Thanks!

Example 1 Example 2
Species Abundance Species
1 3   1
2 2   1
3 2   1
4 2   2
5 4   2

3 

3

4

4

5 
5

5

5

5


--
View this message in context: 
http://r.789695.n4.nabble.com/R-code-help-to-change-table-format-tp4636022.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] how to make plot lines thicker

2012-07-09 Thread peziza
Thanks, that worked!

--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-make-plot-lines-thicker-tp4635875p4635929.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


[R] how to make plot lines thicker

2012-07-09 Thread peziza
I am trying to make the lines thicker in a graph (for a ppt presentation). 

Here is what I currently have:

plot(x,y,type="l", ylab="Number of OTUs", xlab="Number of Samples
Collected", col="Black", pch=1, ylim=c(0,6000))

points(x, Sobs$Chao_1_Mean, type="l", col="Gray", pch=1) (this is one of the
added lines in the graph). 

I believe cex can help increase the size of the points. But I haven't been
able to get it to work. 


--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-make-plot-lines-thicker-tp4635875.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.