labeling affy histogram
1
0
Entering edit mode
@andrew-einhorn-4221
Last seen 9.6 years ago
I am using the affy package to plot a histogram of raw data from an affymetrix dataset. Data <- ReadAffy() hist(Data[,1:4]) The histogram plots fine but I'd like to attach a legend to the plot, or at least label the plot-lines somehow. At present there is no way to discern which of the four lines corresponds to which sample. [[alternative HTML version deleted]]
affy affy • 1.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 15 hours ago
United States
Hi Andrew, On 8/18/2010 9:14 AM, Andrew Einhorn wrote: > I am using the affy package to plot a histogram of raw data from an > affymetrix dataset. > > Data<- ReadAffy() > hist(Data[,1:4]) You need to look at ?legend. And you need to control the line type and color of the samples in your call to hist(). An example: > library(affydata) > data(Dilution) > hist(Dilution, col=1:4, lty=1) > legend("topright", inset = 0.01, legend = row.names(pData(Dilution)), col=1:4,lty=1) Best, Jim > > The histogram plots fine but I'd like to attach a legend to the plot, or at > least label the plot-lines somehow. At present there is no way to discern > which of the four lines corresponds to which sample. > > [[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 -- James W. MacDonald, M.S. Biostatistician Douglas Lab University of Michigan Department of Human Genetics 5912 Buhl 1241 E. Catherine St. Ann Arbor MI 48109-5618 734-615-7826 ********************************************************** Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
ADD COMMENT

Login before adding your answer.

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