[R] Positioning text in top left corner of plot

Benilton Carvalho bcarvalh at jhsph.edu
Tue Aug 7 17:16:48 CEST 2007


maybe this is what you want?

plot(rnorm(10))
legend("topleft", "A)", bty="n")

?

b

On Aug 7, 2007, at 11:08 AM, Daniel Brewer wrote:

> Simple question how can you position text in the top left hand  
> corner of
> a plot?  I am plotting multiple plots using par(mfrow=c(2,3)) and  
> all I
> want to do is label these plots a), b), c) etc.  I have been fiddling
> around with both text and mtext but without much luck.  text is  
> fine but
>  each plot has a different scale on the axis and so this makes it
> problematic.  What is the best way to do this?
>
> Many thanks
>
> 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 add...{{dropped}}



More information about the R-help mailing list