[R] Tick marks in xyplot
Deepayan Sarkar
deepayan at stat.wisc.edu
Wed Jun 23 14:32:51 CEST 2004
On Wednesday 23 June 2004 06:36, Ingolfsson, Olafur wrote:
> Dear R group
>
> I am making multiple xyplot, and would like to have tick marks on
> bottom and left in EACH panel, but only tick labels at the bottom and
> left of the whole graph. I have browsed the internet, as well as the
> help page without success. If anyone could help me find the path to
> the solution I would appreciate. Here is an example, this is the best
> I could do:
I don't think there is good way to do this in the way you expect (I'm
assuming you want the same axis limits for each panel). If you really
want this, look at the following options:
1. You can specify the limits, tick positions, and axis labels
individually for each panel (see documentation for 'scales' in ?xyplot;
all the relevant components - at, lab, etc - can be lists). Use this in
conjunction with relation = "free". You need to supply empty strings as
labels for all the 'inside' panels.
2. The big problem this would have is that the same amount of space
would be allocated for the axis labels in each of the panels, even if
that space is not used for the inside ones. One (undocumented and
unreliable) way to get around that would be to use negative values of
'between'.
Hope that helps,
Deepayan
More information about the R-help
mailing list