[R] Different fonts on different axes

Stephen Weigand weigand.stephen at gmail.com
Thu May 31 19:24:14 CEST 2007


There's also this approach

plot(runif(10), ylab=list("Red, Bold?", col = "red", font = 2),
xlab="Black, standard?")


On 5/31/07, Greg Snow <Greg.Snow at intermountainmail.org> wrote:
> Try this:
>
> > plot(runif(10), ylab="", xlab="Black, standard?")
> > mtext('Red, Bold', side=2, line=3, col='red', font=2)
>
> Hope this helps,
>
> --
> Gregory (Greg) L. Snow Ph.D.
> Statistical Data Center
> Intermountain Healthcare
> greg.snow at intermountainmail.org
> (801) 408-8111
>
>
>
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Martin
> > Henry H. Stevens
> > Sent: Thursday, May 31, 2007 11:00 AM
> > To: R-Help
> > Subject: [R] Different fonts on different axes
> >
> > Hi Folks,
> > How do I get red bold font on my y axis and black standard
> > font on my x axis?
> >
> > plot(runif(10), ylab="Red, Bold?", xlab="Black, standard?")
> >
> > Any pointers or examples would be great.
> > Thanks!
> > Hank
> >
> >
> > Dr. Hank Stevens, Assistant Professor
> > 338 Pearson Hall
> > Botany Department
> > Miami University
> > Oxford, OH 45056
> >
> > Office: (513) 529-4206
> > Lab: (513) 529-4262
> > FAX: (513) 529-4243
> > http://www.cas.muohio.edu/~stevenmh/
> > http://www.muohio.edu/ecology/
> > http://www.muohio.edu/botany/
> >
> > "E Pluribus Unum"
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
> >
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
Rochester, Minn. USA



More information about the R-help mailing list