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

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 23 Aug 2001 16:38:21 +0200 (MET DST)


I've added a note to the help page for R-patched giving Uwe's workaround,
and will shortly parse ... for R-devel so cex.axis can be inlined.



On Thu, 23 Aug 2001, Uwe Ligges wrote:

> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._