[R] multi-platform equivalent of x11() ?

2012-03-06 Thread Paul Johnson
I want to write an R help example that throws up 2 graphs in separate
windows, for comparison. In Linux I plot one, then run

x11()

to spawn a new on-screen device.

Is there some generic equivalent so I can write an example that will
work for Windows and Mac users as well?

If there is none, don't you think it would be fun if there were?

pj

-- 
Paul E. Johnson
Professor, Political Science    Assoc. Director
1541 Lilac Lane, Room 504     Center for Research Methods
University of Kansas               University of Kansas
http://pj.freefaculty.org            http://quant.ku.edu

__
R-help@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.


Re: [R] multi-platform equivalent of x11() ?

2012-03-06 Thread peter dalgaard

On Mar 7, 2012, at 08:13 , Paul Johnson wrote:

 I want to write an R help example that throws up 2 graphs in separate
 windows, for comparison. In Linux I plot one, then run
 
 x11()
 
 to spawn a new on-screen device.
 
 Is there some generic equivalent so I can write an example that will
 work for Windows and Mac users as well?


dev.new(), I think.

 
 If there is none, don't you think it would be fun if there were?
 
 pj
 
 -- 
 Paul E. Johnson
 Professor, Political ScienceAssoc. Director
 1541 Lilac Lane, Room 504 Center for Research Methods
 University of Kansas   University of Kansas
 http://pj.freefaculty.orghttp://quant.ku.edu
 
 __
 R-help@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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@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.