Questions for Affy package on hist() and boxplot()
2
0
Entering edit mode
Luo, Wen ▴ 50
@luo-wen-533
Last seen 10.3 years ago
When using Affy package to QC the data with hist(), how to label the array id on the histogram to differentiate the multiple arrays on the same graph. Our array id usually has a long name. When using the boxplot(), how to rotate the label to be vertical, so the full array id could be seen. This might be basic R questions, but I couldn't find the answer easily. Thanks. Wen [[alternative HTML version deleted]]
affy graph affy graph • 1.2k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 6 days ago
United States
Luo, Wen wrote: > When using Affy package to QC the data with hist(), how to label the > array id on the histogram to differentiate the multiple arrays on the > same graph. You can pass a vector of colors to hist(), as well as line types. For instance, if you have 16 arrays, you might do something like this: hist(abatch, col=1:16, lty=c(rep(1,8), rep(2,8)) ## note that there will only be 8 colors plotted. > > Our array id usually has a long name. When using the boxplot(), how to > rotate the label to be vertical, so the full array id could be seen. See ?par and ?axis for more information. boxplot(abatch, xaxt="n") axis(1, las=2, label=sampleNames(abatch), cex.axis = 0.7) Jim > > This might be basic R questions, but I couldn't find the answer easily. > > Thanks. > > Wen > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor -- James W. MacDonald Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109
ADD COMMENT
0
Entering edit mode
Luo, Wen ▴ 50
@luo-wen-533
Last seen 10.3 years ago
Hi James, Thanks for your help. Your solution for the boxplot() works well. For the hist(), what I would like to do is labeling the histogram of each array with the corresponding array name. Thanks. Wen -----Original Message----- From: James W. MacDonald [mailto:jmacdon@med.umich.edu] Sent: Thursday, February 03, 2005 1:34 PM To: Luo, Wen Cc: bioconductor@stat.math.ethz.ch Subject: Re: [BioC] Questions for Affy package on hist() and boxplot() Luo, Wen wrote: > When using Affy package to QC the data with hist(), how to label the > array id on the histogram to differentiate the multiple arrays on the > same graph. You can pass a vector of colors to hist(), as well as line types. For instance, if you have 16 arrays, you might do something like this: hist(abatch, col=1:16, lty=c(rep(1,8), rep(2,8)) ## note that there will only be 8 colors plotted. > > Our array id usually has a long name. When using the boxplot(), how > to rotate the label to be vertical, so the full array id could be > seen. See ?par and ?axis for more information. boxplot(abatch, xaxt="n") axis(1, las=2, label=sampleNames(abatch), cex.axis = 0.7) Jim > > This might be basic R questions, but I couldn't find the answer > easily. > > Thanks. > > Wen > > [[alternative HTML version deleted]] > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor -- James W. MacDonald Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109
ADD COMMENT
0
Entering edit mode
Luo, Wen wrote: > Hi James, > > Thanks for your help. Your solution for the boxplot() works well. > > For the hist(), what I would like to do is labeling the histogram of > each array with the corresponding array name. Hmmm. Not exactly sure what you want here, so I will assume you want a legend on the plot (the other possibility being that you want to place text on each histogram, which is probably a suboptimal solution). See ?legend. HTH, Jim -- James W. MacDonald Affymetrix and cDNA Microarray Core University of Michigan Cancer Center 1500 E. Medical Center Drive 7410 CCGC Ann Arbor MI 48109
ADD REPLY

Login before adding your answer.

Traffic: 517 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