[R-SIG-Mac] Graphics plotting options

John Chambers jmc at R-project.org
Sat Nov 19 16:44:42 CET 2005


There is an extended version of John Tull's question that initially 
looks harder:  "How to do the same thing with lattice (or grid) graphics?"

par(ask=TRUE)

doesn't have any effect on example(xyplot), for instance.  (And since 
lattice uses grid graphics, there's no reason it should.)

The answer in this case is to use the call:

grid.prompt(TRUE)

and one further complication is that grid.prompt() is not visible to the 
user if you just require(lattice), presumably because the lattice 
namespace doesn't export this function.  To get the functionality, you 
need to explicitly do:

require(grid)

after which the grid.prompt() works fine and has the desired result.

(I suspect this is not really a Mac OS X question, but haven't tried it 
on Linux, e.g.)

John

stefano iacus wrote:

> par(ask=TRUE)
> 
> stefano
> 
> On Nov 18, 2005, at 11:49 PM, John C. Tull wrote:
> 
> 
>>Perhaps I am missing something, such as a preference setting, but I
>>have noticed that the Windows binary of R will pause between plots
>>when running an example that includes graphics. R.app (and JGR for
>>that matter) simply draw the commands without allowing the user to
>>interact and see the graphical output before it is covered with
>>subsequent commands. You do not have time to see the plots before
>>they are covered.  (Try running example("scatterplot") to see what I
>>mean.)
>>
>>Is there a way to allow interaction, or is there a setting so new
>>quartz windows are spawned on output?
>>
>>Thanks,
>>John
>>
>>John C. Tull
>>Doctoral Candidate
>>MS-314 Ecology, Evolution, & Conservation Biology
>>University of Nevada
>>Reno, NV 89557
>>775-784-4804
>>FAX 775-784-1369
>>
>>_______________________________________________
>>R-SIG-Mac mailing list
>>R-SIG-Mac at stat.math.ethz.ch
>>https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>



More information about the R-SIG-Mac mailing list