[R] lattice: ticks at the joining sides of panels?
Bert Gunter
gunter.berton at gene.com
Tue Feb 26 15:31:16 CET 2013
Have you tried using an "at" list in the x and y components of the
"scales" list argument to xyplot?
The docs say that that list should be as long as the number of panels,
indicating that you get tic marks drawn for all panels. And I assume
you can specify no tics drawn for some. Presumably this list is used
in whatever panel order you have specified. As I have never done this,
I do not know whether this works or gives you what you want. You just
will need to try and see.
-- Bert
On Tue, Feb 26, 2013 at 12:27 AM, Martin Ivanov <tramni at abv.bg> wrote:
> Dear R users,
>
> I would like to produce a lattice graph that keeps the ticks at the joining sides of the panels.
> For example:
>
> library(lattice)
> library(datasets)
> xyplot(lat ~ long | cut(depth, 2), data = quakes, between=list(x=1))
>
> You can see that ticks are plotted at the sides 1 (bottom), 2 (right) and 3 (top) of panel 1
> and 1 (bottom), 3 (top) and 4 (right) of panel 2. Is it possible to plot ticks at side
> 4 (right) of panel 1 and side 2 (left) of panel 2?
>
> Thank You very much for Your attention.
>
> Best regards,
>
> Martin
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
--
Bert Gunter
Genentech Nonclinical Biostatistics
Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
More information about the R-help
mailing list