Re: [R] turn off selected axes in bwplot

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue 07 Feb 2006 - 06:52:44 EST

On 2/6/06, William Briggs <wib2004@med.cornell.edu> wrote:
>
> > Does this do what you want?
> >
> > bwplot(<...>,
> > scales = list(x = list(alternating = 1, tck = c(1, 0))))
> >
> > This is described in detail under 'scales' in ?bwplot.
>
> Not quite. This controls, if I've understood it correctly, the axis tick
> marks and such (I also tried the argument "draw=FALSE" in the list above).
>
> The analogue I have in mind is the simple plot axes control like this
>
> plot(<...>, axes=FALSE)
> axis(1)

OK, so you don't want any y-axes at all? In that case, how about

bwplot(<...>,

      scales = list(x = list(alternating = 1, tck = c(1, 0)),
                     y = list(draw = FALSE)))

?

> which would only draw the bottom axis, with tick marks and label. Those
> arguments, of course, don't work for the lattice graphics, but I did notice
> a similar control in the panel.aixs() function, but I just don't know how to
> get to it.

You can't easily.

--
http://www.stat.wisc.edu/~deepayan/

______________________________________________
R-help@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
Received on Tue Feb 07 07:05:53 2006

This archive was generated by hypermail 2.1.8 : Tue 07 Feb 2006 - 08:37:20 EST