Re: [R] Lattice plotting question

From: Felix Andrews <felix_at_nfrac.org>
Date: Mon, 28 Jun 2010 09:26:02 +1000

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/

______________________________________________
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.
Received on Sun 27 Jun 2010 - 23:31:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 27 Jun 2010 - 23:50:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive