[R] panel vs subpanel in cloud from lattice library

Deepayan Sarkar deepayansarkar at yahoo.com
Thu Oct 17 21:28:18 CEST 2002

--- Rishabh Gupta <rg117 at ohm.york.ac.uk> wrote:
> Hi,
>     Could somebody explain to be the different between the panel and the
> subpanel parameter in the cloud function of the lattice
> library. I'm not sure when to use which.

The panel function is supposed to draw everything inside a panel. In the case
of cloud, this would mean the surrounding box, the arrows/scales, etc (i.e.,
the part of the plot that doesn't depend on the data), and also, the data. If
the panel function can do this itself, that's fine. It just so happens that
panel.cloud has an argument called subpanel (defaults to panel.xyplot) which it
uses to draw the data after determining the 2d projections of the 3d data. If
you specify subpanel in the call to cloud, it is ignored by cloud and is passed
to the panel function (as is any other argument it doesn't recognize).

Hope that explains things.

Now, panel.cloud in the current version of lattice is very messy, but has been
cleaned up considerably in the next version (which should be released soon). So
if you want to write new panel functions, you should probably wait till then.



r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list