legend to hist()
2
0
Entering edit mode
@tineke-casneuf-655
Last seen 10.3 years ago
Is it possible to put a legend on histograms -hist(affybatch.object)- so that I can see which slide is which on the plots? I have tried it with legend(x,y, legend=sampleNames(affybatch.object)), but I can't get it to work this way either. Many thanks in advance! Tine ================================================================== Tineke Casneuf Tel: 32 (0)9 3313692 DEPARTMENT OF PLANT SYSTEMS BIOLOGY Fax:32 (0)9 3313809 GHENT UNIVERSITY/VIB, Technology Park 927, B-9052 Gent, Belgium Vlaams Interuniversitair Instituut voor Biotechnologie VIB e-mail:ticas@psb.ugent.be http://www.psb.ugent.be/bioinformatics/
• 1.1k views
ADD COMMENT
0
Entering edit mode
@matthew-hannah-621
Last seen 10.3 years ago
try this (for 6 chips), for colours and legend. >hist(data, type="l", lty=1, lwd=2, col=1:6) >legend(12, 0.25, legend=c("chip1","chip2","chip3","chip4","chip5","chip6"), lty=1, lwd=2, col=1:6) Matt
ADD COMMENT
0
Entering edit mode
@rafael-a-irizarry-205
Last seen 10.3 years ago
you have to say more on what you mean by "cant get it to work". this works for me: > data(affybatch.example) > hist(affybatch.example) > legend(12,0.6,sampleNames(affybatch.example),col=1:3,lty=1:3) On Wed, 10 Mar 2004, Tineke Casneuf wrote: > Is it possible to put a legend on histograms -hist(affybatch.object)- > so that I can see which slide is which on the plots? I have tried it > with legend(x,y, legend=sampleNames(affybatch.object)), but I can't get > it to work this way either. > > Many thanks in advance! > > Tine > > ================================================================== > Tineke Casneuf Tel: 32 (0)9 3313692 > DEPARTMENT OF PLANT SYSTEMS BIOLOGY Fax:32 (0)9 3313809 > GHENT UNIVERSITY/VIB, Technology Park 927, B-9052 Gent, Belgium > Vlaams Interuniversitair Instituut voor Biotechnologie VIB > e-mail:ticas@psb.ugent.be http://www.psb.ugent.be/bioinformatics/ > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor >
ADD COMMENT

Login before adding your answer.

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