[R] Lattice plotting question

Felix Andrews felix at nfrac.org
Mon Jun 28 01:26:02 CEST 2010


Oh, if you want to put the panels on the same scale, see
resizePanels() from the latticeExtra package.

That does something like
print(xyplot(...), panel.height = list(x = c(50,100), units = "null"))
but figures out the ratios automatically.

-Felix


On 28 June 2010 08:46, David Warren <davideugenewarren at gmail.com> wrote:
> That achieves the desired alignment, but squishes all of the data in the top
> xyplot, which has a maximum y-value of around 50.  Any thoughts on a means
> of moving the axis without changing the range?  Thanks!
>
> On Fri, Jun 25, 2010 at 6:42 PM, Felix Andrews <felix at nfrac.org> wrote:
>>
>> ylim = extendrange(c(0,100)) ?
>>
>> On 26 June 2010 01:42, David Warren <davideugenewarren at gmail.com> wrote:
>> > Hi all,
>> >
>> >     I'm working on some plots using lattice (R 2.10.1), and have entered
>> > the polish phase.  I've produced a satisfactory pair of xyplots (
>> > http://imgur.com/EyXGi.png), but would like to align the y-axes of the
>> > top
>> > and bottom plots.  I assume that I need to adjust axis padding or
>> > something,
>> > but I can't figure this one out.  Thanks for any help!
>> >
>> > Dave
>> >
>> > --
>> > Post-doctoral Fellow
>> > Neurology Department
>> > University of Iowa Hospitals and Clinics
>> > davideugenewarren at gmail.com
>> >
>> >        [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > 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.
>> >
>>
>>
>>
>> --
>> Felix Andrews / 安福立
>> Integrated Catchment Assessment and Management (iCAM) Centre
>> Fenner School of Environment and Society [Bldg 48a]
>> The Australian National University
>> Canberra ACT 0200 Australia
>> M: +61 410 400 963
>> T: + 61 2 6125 4670
>> E: felix.andrews at anu.edu.au
>> CRICOS Provider No. 00120C
>> --
>> http://www.neurofractal.org/felix/
>
>
>
> --
> Post-doctoral Fellow
> Neurology Department
> University of Iowa Hospitals and Clinics
> davideugenewarren at gmail.com
>



-- 
Felix Andrews / 安福立
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 4670
E: felix.andrews at anu.edu.au
CRICOS Provider No. 00120C
-- 
http://www.neurofractal.org/felix/



More information about the R-help mailing list