Re: [R] par(ask=TRUE)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 28 Mar 2008 17:21:02 +0000 (GMT)

On Fri, 28 Mar 2008, Erwann.Rogard_at_sanofi-aventis.com wrote:

> Hi,
>
> 1)
> par(ask=TRUE)
> histogram(~Y|F1 * F2 * F3,data = ...)
>
> Successively displays many plots as the # of levels in F3 w/o asking for
> input between each.
> In other words I only get to see the plot for the last level. What's the
> right commands?

library(grid)
?grid.prompt.

par() applies only to base graphics, and you are using grid (via lattice) here.

In 2.7.0 you will use devAskNewPage() instead, and this applies to the device and not the graphics subsystem.

> 2)
> Also I am wondering if there are plot objects i.e. something like
> obj<-plot(x,y)

Yes, in the lattice and ggplot[2] systems, and (in a different way) in teh grid graphics subsystem they are built on.

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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 Fri 28 Mar 2008 - 17:24:21 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 Fri 28 Mar 2008 - 17:30:25 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