-------------------------------------------------------------------------- Hello all My computer is MacBook and I want to draw a plot in R, for example for x <- c(1,3,6,9,12) y <- c(1.5,2,7,8,15) I use this command plot(x,y). but it dosn't work. Could you please help me? thank you khazaei
On Jan 19, 2010, at 10:21 AM, khazaei at ceremade.dauphine.fr wrote:> -------------------------------------------------------------------------- > Hello all > My computer is MacBook and I want to draw a plot in R, for example for > x <- c(1,3,6,9,12) > y <- c(1.5,2,7,8,15) > I use this command plot(x,y).Yes?, And what happened?> but it dosn't work.The phrase "doesn't work" should be banned from written discourse. Please provide the information requesting in the Posting Guide. sessionInfo() generally provides what you need. (My guess, if you are using the R- Mac GUI, is that you have not yet figured out that you need to use the Window menu to bring the default Quartz window forward. It probably has your requested plot with 5 points despite the 6 element "y".)> Could you please help me? > thank you > khazaei > > > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ David Winsemius, MD Heritage Laboratories West Hartford, CT
Hello all My computer is MacBook and I want to draw a plot in R, for example for x <- c(1,3,6,9,12) y <- c(1.5,2,7,8,15) I use this command plot(x,y) to do but I see this massage: Erreur dans plot(Di, g) : argument(s) inutilis?(s) (c(1, 2, 3), c(12, 23, 34)) Could you please help me? Thank you khazaei
You have redefined the plot function somewhere. Check your saved environment. mario On 20-Jan-10 15:36, khazaei at ceremade.dauphine.fr wrote:> > Hello all > > My computer is MacBook and I want to draw a plot in R, for example for > x<- c(1,3,6,9,12) > y<- c(1.5,2,7,8,15) > I use this command plot(x,y) to do but I see this massage: > Erreur dans plot(Di, g) : > argument(s) inutilis?(s) (c(1, 2, 3), c(12, 23, 34)) > > Could you please help me? > > Thank you > khazaei > > ______________________________________________ > 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.-- Ing. Mario Valle Data Analysis and Visualization Group | http://www.cscs.ch/~mvalle Swiss National Supercomputing Centre (CSCS) | Tel: +41 (91) 610.82.60 v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82