One other way that is sometimes useful is to use the
tick.number argument as in:
xyplot(yield ~ nitro, data=Oats,
scales=list(x=list(tick.number=4)), subset=Variety=="Victory"
)
This is especially handy if you want to just tick/label
every other value.
-Peter Ehlers
Jacob Wegelin wrote:
>> What principle is at work?
>
> A strange one called "standard non-standard evaluation"; see
>
> http://developer.r-project.org/nonstandard-eval.pdf
>
> for a nice overview by Thomas Lumley.
>
>
> ?xyplot says:
>
> data: For the 'formula' method, a data frame containing values (or
>
On 10/12/2009 08:30 PM, Deepayan Sarkar wrote:
On Mon, Oct 12, 2009 at 9:32 AM, Jacob Wegelin wrote:
When we call a lattice function such as xyplot, to what extent does
the "data" designation cause the function to look inside the "data"
for variables?
In the examples below, the "subset" argume
On Mon, Oct 12, 2009 at 9:32 AM, Jacob Wegelin wrote:
> When we call a lattice function such as xyplot, to what extent does
> the "data" designation cause the function to look inside the "data"
> for variables?
>
> In the examples below, the "subset" argument understands that
> "Variety" is a vari
Deepayan will correct me if I'm wrong, but I'm pretty sure that the answer
is that it looks in the frame in the data argument only for variables in the
formula argument. Note that the fact that it also works for the subset
argument is explicitly mentioned therein:
subset: logical or integer index
5 matches
Mail list logo