[R] Some questions about plotting with R

Gavin Simpson gavin.simpson at ucl.ac.uk
Wed Oct 4 10:30:11 CEST 2006


On Wed, 2006-10-04 at 09:10 +0100, Wee-Jin Goh wrote:
> On 4 Oct 2006, at 09:03, Robin Hankin wrote:
> 
> > Hi Wee-Jin
> >
> > check out R-and-octave.txt, on the contributed docs section of CRAN.
> >
> >
> > HTH
> >
> > Robin
> >
> > --
> > Robin Hankin
> > Uncertainty Analyst
> > National Oceanography Centre, Southampton
> > European Way, Southampton SO14 3ZH, UK
> >  tel  023-8059-7743
> >
> 
> Thanks for the response Robin, but that document doesn't help me with  
> either my quest for plot3, or multiple figures (i.e. the 'figure'  
> command in Octave/Matlab).
> 
> cheers,
> Wee-Jin

If you want three separate graphics windows (Devices) then,

X11() # not really needed as plot() will produce a new device if none is
      # open
plot(1:10)
X11()
plot(1:10)
X11()
plot(1:10)
...

Will create a new device. see ?Devices for a list of devices you can
open on your system or ?capabilities . It is so long since I used a
Windows version of R, that I forget if X11() opens a Windows graphics
device there as well.

As for 3D stuff, you might take a look at persp() (in base R) and the
scatterplot3D package. If you want to see what R's Graphics can do, then
the book R Graphics by Paul Murrell [1] will tell you all you need to
know, and the excellent, online R graphics gallery [2] has lots of
examples.

HTH

G

[1] http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html
[2] http://addictedtor.free.fr/graphiques/
-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 *Note new Address and Fax and Telephone numbers from 10th April 2006*
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson                     [t] +44 (0)20 7679 0522
ECRC                              [f] +44 (0)20 7679 0565
UCL Department of Geography
Pearson Building                  [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street
London, UK                        [w] http://www.ucl.ac.uk/~ucfagls/cv/
WC1E 6BT                          [w] http://www.ucl.ac.uk/~ucfagls/
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list