Hi,
On Sep 14, 2009, at 2:34 PM, kylle345 wrote:
Hi,
I have 5 different files. Each file has about 1000 columns and
about 3000
rows. Basically what I want to do is take the average of the 1000
columns
and then graph it (line graph). How would I do this for 5 files at
the same
time and plot the average of the 5 files into one graph.
it would be great if you can get me started with a quick code.
You're not doing it at the same time, but doing it sequentially:
Step 1: Load the data
?read.table
Step 2: Get average of columns in a table
?colMeans
Step 3: Plotting. What type of plot do you expect to see?
?plot
?barchart
?barplot
?boxplot
?points
?lines
...
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
______________________________________________
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.