On 25/05/14 23:57, Brian Smith wrote:
Hi,

I wanted to have a different font for my x-axis and y-axis. How can I use
the par function to specify different font sizes for x and y axis? For
example:

x <- matrix(rnorm(2000),200,10)
colnames(x) <- letters[1:10]
par(cex.axis=0.5)
boxplot(x,cex=0.2)

But this sets the font size to 0.5 for both the x and y axis? How can I
make the y-axis to 1.5?

How about:

> boxplot(x,cex=0.2,axes=FALSE)
> axis(1,cex.axis=0.5)
> axis(2,cex.axis=1.5)

Does that get you what you want?

cheers,

Rolf Turner

______________________________________________
R-help@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.

Reply via email to