[Rd] cex.axis in barplot() (PR#1070)

Uwe Ligges ligges@statistik.uni-dortmund.de
Thu, 23 Aug 2001 08:52:24 +0200

jerome@stat.ubc.ca wrote:
> Full_Name: Jerome Asselin
> Version: 1.3.0
> OS: Windows 98
> Submission from: (NULL) (
> I have a hard time to magnify the axis annotations in barplot()
> Here are some examples:
> #This one has no effect.
> barplot(1:3,names.arg=1:3,cex.axis=3,xlab="x",ylab="y")

>From the help:
 ...  further graphical parameters (par) are passed to plot.window() and
[let me add: ... and not to axis()...]

But you can use:

 barplot(1:3, names.arg=1:3, xlab="x", ylab="y")

> #This one magnifies the x and y labels
> barplot(1:3,names.arg=1:3,cex.lab=3,xlab="x",ylab="y")

... as expected.

> #This one has no effect.
> barplot(1:3,names.arg=1:3,cex=3,xlab="x",ylab="y")

In this case (no symbols are drawn inside the plot, ...) also expected.

> Maybe this could be added to the "wish list".
> I assume that I will be able to create my own axis with
> the axis() function.

Without looking at the code not so easy as the workaround described
above. An example:

  barplot(1:3, names.arg=1:3, xlab="x", ylab="y")
  axis(1, at=1:3)

Uwe Ligges
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch