From ligges@statistik.uni-dortmund.de  Thu Aug 23 07:52:24 2001
From: ligges@statistik.uni-dortmund.de (Uwe Ligges)
Date: Thu, 23 Aug 2001 08:52:24 +0200
Subject: [Rd] cex.axis in barplot() (PR#1070)
References: <200108230431.GAA10293@pubhealth.ku.dk>
Message-ID: <3B84A828.E57B14DC@statistik.uni-dortmund.de>

jerome@stat.ubc.ca wrote:
> 
> Full_Name: Jerome Asselin
> Version: 1.3.0
> OS: Windows 98
> Submission from: (NULL) (24.77.112.193)
> 
> 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
title(). 
[let me add: ... and not to axis()...]

But you can use:

 par(cex.axis=3)
 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


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