[R] average for files and graph
Steve Lianoglou
mailinglist.honeypot at gmail.com
Mon Sep 14 22:16:54 CEST 2009
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
More information about the R-help
mailing list