[R] turn off selected axes in bwplot

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Feb 6 20:52:44 CET 2006


On 2/6/06, William Briggs <wib2004 at 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/




More information about the R-help mailing list