[BioC] labeling affy histogram
James W. MacDonald
jmacdon at med.umich.edu
Wed Aug 18 16:08:00 CEST 2010
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
More information about the Bioconductor
mailing list