[R] Add text A, B, C and D on multiple ordered plot
Rolf Turner
rolf.turner at xtra.co.nz
Fri Feb 8 21:36:53 CET 2013
Try:
a<- rnorm(1000,0,1)
b<- rnorm(1000,0,2)
c<- rnorm(1000,0,3)
d<- rnorm(1000,0,4)
par(mfrow=c(2,2))
hist(a,main="")
title(main="A",adj=0)
hist(b,main="")
title(main="B",adj=0)
hist(c,main="")
title(main="C",adj=0)
hist(d,main="")
title(main="D",adj=0)
cheers,
Rolf Turner
On 02/09/2013 08:42 AM, Fabrice Tourre wrote:
> Thank your reminder.
> Here is the example code:
>
> a<- rnorm(1000,0,1)
> b<-rnorm(1000,0,2)
> c<-rnorm(1000,0,3)
> d<-rnorm(1000,0,4)
> par(mfrow=c(2,2))
> hist(a)
> hist(b)
> hist(c)
> hist(d)
> I want to add A, B, C and D on each top left.
>
> On Fri, Feb 8, 2013 at 2:35 PM, John Kane <jrkrideau at inbox.com> wrote:
>> Yes there probably is if you would show us what you are doing.
>> Minimal working code helps.
>>
>> https://github.com/hadley/devtools/wiki/Reproducibility
>>
>> John Kane
>> Kingston ON Canada
>>
>>
>>> -----Original Message-----
>>> From: fabrice.ciup at gmail.com
>>> Sent: Fri, 8 Feb 2013 14:28:17 -0500
>>> To: r-help at r-project.org
>>> Subject: [R] Add text A, B, C and D on multiple ordered plot
>>>
>>> Dear list,
>>>
>>> Is there a elegant way to name multiple ordered plot as A, B, C and D?
>>> Just put A, B, C and D on the top left corner of each plot.
>>>
>>> Usually I do it in Illustrator, but I think in R should there is a way.
>>>
>>> Could you please provide a example?
>>>
>>> Thank you very much in advance.
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list