I am trying to create some graphs with R and it seems to be able to do what I need. However, I have so far not been able to find any sort of explanation of how the graphics system works. I am for instance trying to create a multiple figure, and I seem to have to call plot.new() before every new plot command, I have however not found any explanation of what this actually does. ?plot.new does give an explanation, but it is explained in R, so to speak. Where do I find out what for instance a graphics frame is? Thanks, Karin -- Karin Lagesen, PhD student karin.lagesen at medisin.uio.no http://www.cmbn.no/rognes/
Hi, Karin Lagesen wrote:> I am trying to create some graphs with R and it seems to be able to do > what I need. However, I have so far not been able to find any sort of > explanation of how the graphics system works. I am for instance trying > to create a multiple figure, and I seem to have to call plot.new() > before every new plot command, I have however not found anyDo you mean several graphs in the same window? If so, you want something like, e.g.: par(mfrow = c(2, 2)) Take a look at ?par and the "mfrow" or "mfcol" options. Cheers and HTH, Kev -- Ko-Kang Kevin Wang PhD Student Centre for Bioinformation Science Building 27, Room 1004 Mathematical Sciences Institute (MSI) Australian National University Canberra, ACT 2601 Australia Homepage: http://wwwmaths.anu.edu.au/~wangk/ Ph (W): +61-2-6125-2431 Ph (H): +61-2-6125-7488 Ph (M): +61-40-451-8301
>>> Karin Lagesen <karin.lagesen at medisin.uio.no> 9/27/2005 9:27:29 AM >>><<< I am trying to create some graphs with R and it seems to be able to do what I need. However, I have so far not been able to find any sort of explanation of how the graphics system works. I am for instance trying to create a multiple figure, and I seem to have to call plot.new() before every new plot command, I have however not found any explanation of what this actually does. ?plot.new does give an explanation, but it is explained in R, so to speak. Where do I find out what for instance a graphics frame is?>>>If you'd like a more comprehensive reference in book form, I recommend Paul Murrell's book R Graphics. HTH Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St http://cduhr.ndri.org www.peterflom.com New York, NY 10010 (212) 845-4485 (voice) (917) 438-0894 (fax)
you may want to look at some introduction notes of R graphics at http://lib.stat.cmu.edu/R/CRAN/other-docs.html Regards Anthony ----- Original Message ----- From: "Karin Lagesen" <karin.lagesen at medisin.uio.no> To: <r-help at r-project.org> Sent: Tuesday, September 27, 2005 3:27 PM Subject: [R] graphics guide?> > I am trying to create some graphs with R and it seems to be able to do > what I need. However, I have so far not been able to find any sort of > explanation of how the graphics system works. I am for instance trying > to create a multiple figure, and I seem to have to call plot.new() > before every new plot command, I have however not found any > explanation of what this actually does. ?plot.new does give an > explanation, but it is explained in R, so to speak. Where do I find > out what for instance a graphics frame is? > > Thanks, > > Karin > -- > Karin Lagesen, PhD student > karin.lagesen at medisin.uio.no > http://www.cmbn.no/rognes/ > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html
If you like to learn from examples than you will find plenty of them in the following 3 web-sites http://www.stat.auckland.ac.nz/~paul/RGraphics/rgraphics.html http://www.stat.ucl.ac.be/ISpersonnel/lecoutre/R/svGraphGallery/dock/svGalle ry.html http://addictedtor.free.fr/graphiques/ Jarek ====================================================\==== Jarek Tuszynski, PhD. o / \ Science Applications International Corporation <\__,| (703) 676-4192 "> \ Jaroslaw.W.Tuszynski at saic.com ` \ -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] Sent: Tuesday, September 27, 2005 9:27 AM To: r-help at r-project.org Subject: [R] graphics guide? I am trying to create some graphs with R and it seems to be able to do what I need. However, I have so far not been able to find any sort of explanation of how the graphics system works. I am for instance trying to create a multiple figure, and I seem to have to call plot.new() before every new plot command, I have however not found any explanation of what this actually does. ?plot.new does give an explanation, but it is explained in R, so to speak. Where do I find out what for instance a graphics frame is? Thanks, Karin -- Karin Lagesen, PhD student karin.lagesen at medisin.uio.no http://www.cmbn.no/rognes/ ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
At the R website, CRAN, in the Manuals section, you can download the document titled "An Introduction to R", which contains a substantial section on the basics of R graphics. -Don At 3:27 PM +0200 9/27/05, Karin Lagesen wrote:>I am trying to create some graphs with R and it seems to be able to do >what I need. However, I have so far not been able to find any sort of >explanation of how the graphics system works. I am for instance trying >to create a multiple figure, and I seem to have to call plot.new() >before every new plot command, I have however not found any >explanation of what this actually does. ?plot.new does give an >explanation, but it is explained in R, so to speak. Where do I find >out what for instance a graphics frame is? > >Thanks, > >Karin >-- >Karin Lagesen, PhD student >karin.lagesen at medisin.uio.no >http://www.cmbn.no/rognes/ > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA