labels on hist
1
0
Entering edit mode
@stephen-henderson-71
Last seen 7.6 years ago
I think i have asked this before but can't find the answer in the BioC history. So apologies but how does one add labels to a hist of the AffyBatch intensities. I understand that affy package adds methods for this object but they aren't compatible with those described on the help pages. i.e labels=, doesn't work. Thanks Stephen ********************************************************************** This email and any files transmitted with it are confidentia...{{dropped}}
affy affy • 1.1k views
ADD COMMENT
1
Entering edit mode
Laurent Gautier ★ 2.3k
@laurent-gautier-29
Last seen 10.2 years ago
One way to do so is to use the function 'legend()' Example: data(affybatch.example) r <- hist(affybatch.example, col=1:6, lty=1:5) ## check on the plot where you would like to have the legend ## (here 12, 0.4 looks like a good place) legend(10, 0.2, legend=sampleNames(affybatch.example), col=1:6, lty=rep(1:5, length=length(affybatch.example))) ## apparently there is a problem with the parameter lty for ## legend(), which justifies the extra bit for lty above. Hoping it helps, L. On Mon, Dec 22, 2003 at 01:07:02PM -0000, Stephen Henderson wrote: > I think i have asked this before but can't find the answer in the BioC > history. So apologies but how does one add labels to a hist of the AffyBatch > intensities. > > I understand that affy package adds methods for this object but they aren't > compatible with those described on the help pages. i.e labels=, doesn't > work. > > > Thanks > Stephen > > > ********************************************************************** > This email and any files transmitted with it are confidentia...{{dropped}} > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor -- -------------------------------------------------------------- Laurent Gautier CBS, Building 208, DTU PhD. Student DK-2800 Lyngby,Denmark tel: +45 45 25 24 89 http://www.cbs.dtu.dk/laurent
ADD COMMENT

Login before adding your answer.

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