Labelling subplots a), b) etc.
2
0
Entering edit mode
Daniel Brewer ★ 1.9k
@daniel-brewer-1791
Last seen 10.2 years ago
Hi, I am creating a plot with multiple subplots on it (by using) and I would like to be able to label these "a)", "b)" etc. in the top left corner. I have been trying to use text to accomplish this, but it only seems to place a label within the plotting area not outside where the title axis is. Any suggestions? Dan -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addre...{{dropped}}
Cancer Cancer • 970 views
ADD COMMENT
0
Entering edit mode
@joern-toedling-1244
Last seen 10.2 years ago
Hi Dan, you can use text with the additional argument "xpd=TRUE" to put text outside the main plotting area. Joern Daniel Brewer wrote: > Hi, > > I am creating a plot with multiple subplots on it (by using) and I would > like to be able to label these "a)", "b)" etc. in the top left corner. > I have been trying to use text to accomplish this, but it only seems to > place a label within the plotting area not outside where the title axis is. > > Any suggestions? > > Dan > >
ADD COMMENT
0
Entering edit mode
@rathanasiadou-2085
Last seen 10.2 years ago
Hi, Have you tried mtext() ? It can draw at the plots margins. Also legend()could be useful. Additionally perhaps you want to adjust your margin and labels' areas by defining mar= oma= mgp= . For those check ?par. Finally I found useful to define the dimensions of the graphics devise- windows() or X11()- so that I can control better the exact coordinates of the added text/legend. Anyhow, to my experience, you need to devote some time playing with the different values until you get the result you want. Best wishes Niki ICB Swann Building The King's Buildings University of Edinburgh Edinburgh, EH9 3JR Scotland UK tel:(0044)0131-6507072 fax:(0044)0131-6505379 R.Athanasiadou at sms.ed.ac.uk -----Original Message----- From: bioconductor-bounces@stat.math.ethz.ch [mailto:bioconductor-bounces at stat.math.ethz.ch] On Behalf Of Daniel Brewer Sent: 22 May 2007 11:42 To: bioconductor at stat.math.ethz.ch Subject: [BioC] Labelling subplots a), b) etc. Hi, I am creating a plot with multiple subplots on it (by using) and I would like to be able to label these "a)", "b)" etc. in the top left corner. I have been trying to use text to accomplish this, but it only seems to place a label within the plotting area not outside where the title axis is. Any suggestions? Dan -- ************************************************************** Daniel Brewer, Ph.D. Institute of Cancer Research Email: daniel.brewer at icr.ac.uk ************************************************************** The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP. This e-mail message is confidential and for use by the addre...{{dropped}} _______________________________________________ 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
ADD COMMENT

Login before adding your answer.

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