plot multiple genes over time
2
0
Entering edit mode
Mark W Kimpel ▴ 830
@mark-w-kimpel-2027
Last seen 10.3 years ago
An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/bioconductor/attachments/20080331/ a82e3563/attachment.pl
• 463 views
ADD COMMENT
0
Entering edit mode
Thomas Girke ★ 1.7k
@thomas-girke-993
Last seen 9 months ago
United States
Here is a simple example for generating line graphs for such data sets: # Generates a sample data set y <- as.data.frame(matrix(runif(30), ncol=3, dimnames=list(letters[1:10], LETTERS[1:3]))) # Plots a line graph for all columns in data frame 'y'. The 'split.screen()' # function is used in this example in a for loop to overlay several line graphs # in the same plot. plot(y[,1], type="l", lwd=2, col="blue") # Plots a line graph instead. split.screen(c(1,1)) plot(y[,1], ylim=c(0,1), xlab="Measurement", ylab="Intensity", type="l", lwd=2, col=1) for(i in 2:length(y[1,])) { screen(1, new=FALSE) plot(y[,i], ylim=c(0,1), type="l", lwd=2, col=i, xaxt="n", yaxt="n", ylab="", xlab="", main="", bty="n") } close.screen(all=TRUE) On Mon 03/31/08 13:11, Mark Kimpel wrote: > In several papers I have seen a plot which illustrates the value of > expression of several genes (usually in a cluster) over time. The y axis is > expression, the x axis is discrete time points, and each of the points for a > gene are connected by lines so one can easily see a time profile. > > Is there a predefined function for this? If not, what plot parameters do I > use? > > Thanks, > Mark > > -- > Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry > Indiana University School of Medicine > > 15032 Hunter Court, Westfield, IN 46074 > > (317) 490-5129 Work, & Mobile & VoiceMail > (317) 663-0513 Home (no voice mail please) > > ****************************************************************** > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor > -- Thomas Girke Assistant Professor of Bioinformatics Director, IIGB Bioinformatic Facility Center for Plant Cell Biology (CEPCEB) Institute for Integrative Genome Biology (IIGB) Department of Botany and Plant Sciences 1008 Noel T. Keen Hall University of California Riverside, CA 92521 E-mail: thomas.girke at ucr.edu Website: http://faculty.ucr.edu/~tgirke Ph: 951-827-2469 Fax: 951-827-4437
ADD COMMENT
0
Entering edit mode
@sean-davis-490
Last seen 4 months ago
United States
On Mon, Mar 31, 2008 at 1:11 PM, Mark Kimpel <mwkimpel at="" gmail.com=""> wrote: > In several papers I have seen a plot which illustrates the value of > expression of several genes (usually in a cluster) over time. The y axis is > expression, the x axis is discrete time points, and each of the points for a > gene are connected by lines so one can easily see a time profile. > > Is there a predefined function for this? If not, what plot parameters do I > use? Hi, Mark. You might want to look at matplot(). Also, the lattice package is very useful for plotting multidimensional data in interesting ways. You might look at xyplot() in that package. Sean
ADD COMMENT

Login before adding your answer.

Traffic: 1904 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6