Re: [R] Different fonts on different axes

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Thu, 31 May 2007 10:07:13 -0700

Martin Henry H. Stevens said the following on 5/31/2007 9:59 AM:
> 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.

Try:

plot(runif(10), xlab = "", ylab = "")
title(xlab = "Index")
title(ylab = "y", font.lab = 2, col.lab = "red")

HTH, --sundar



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. Received on Thu 31 May 2007 - 17:22:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 31 May 2007 - 18:31:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.