Re: [R] Complex plotting in R

From: Francisco J. Zagmutt <>
Date: Wed 13 Jul 2005 - 04:10:00 EST

First call par(mfrow = c(2,2)) to get four plots in one panel then plot your top figures using
plot(x, xaxt="n")#this will generate the plot withoput displaying the x axis and then plot your bottom figures keeping the axis (without using xaxt="n")

You may want to fix the x axis limits to match between figures using the argument xlim=c(min,max) within plot()

More details in your note would have been helpful to give you better guidance



>From: "" <>
>Subject: [R] Complex plotting in R
>Date: Tue, 12 Jul 2005 14:51:18 +0000
>Hi list,
>I'm looking for a function or a combination of functions to do panel
>plotting of mixed graph types with the same x axis.
>I would like to construct a panel with 3 stacked windows with on top a
>histogram, below that 2 cdf plots. They all have the same x axis value but
>different y axis values. Is it possible to construct something like that?
>I've looked into the lattice package but it doesn't seem to solve my
>problem because I clearly want 1 x axis for all the graphs so not just a
>panel with 3 full graphs.
>Something like this:
>(copyright to whom copyright is due...)
>but with the top and bottom graphs merged.
>Best regards,
>Koen Hufkens
> mailing list
>PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Wed Jul 13 04:15:55 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:34 EST