[R] error type

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Mon Aug 27 00:43:23 CEST 2012


As the footer says...

 PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Some issues with your email are:

a) You posted in HTML, which in spite of appearances does NOT appear on our screens the same as on your screen. Configure your mail to be sent in plain text.

b) "Reproducible code" means we can paste it into our R interpreter and get the same result you did. You did not give us the code that read your data into the "dados" object, or data in an R-understandable way. Read http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

I doubt you should be referring to "dados[1]", "dados[2]" and similar... plot and lines functions accept a whole vector of data at once. Also, the ">>" bits sprinkled in don't look like valid syntax, but I can't tell if that is due to HTML corruption or whether you actually typed that in.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

aprendiz programa <aprendizprogram at hotmail.com> wrote:

>
>
>
>From: aprendizprogram at hotmail.com
>To: r-help at r-project.org
>Date: Mon, 27 Aug 2012 00:01:52 +0300
>Subject: [R] error type
>
> 
>Hi,
>I am trying plot a grafic but generates an error:
>Erro em plot.default(xlim, ylim, type = "n", ann = FALSE, axes = FALSE,
>:   argumento formal "type" corresponde a m�ltiplos argumentos
>especificado
>>>plot(dados[1],type="o",pch=21,
>axes=FALSE,xlab="year",ylab="cases")>>lines(dados[2], type="o",
>pch=22)>>lines(dados[3], type="o",pch=23)>>lines(dados[4],
>type="o",pch=24)>>legend(1,8.5,
>legend=c("Pel","RG","SM","SV"),pch=21:24)axis(1,at=1:10,
>lab=c("2000","2001","2002","2003","2004","2005","2006","2007","2008","2009"))>>axis(2,0:60)
>		 	   		  
>	[[alternative HTML version deleted]]
> 
>
>______________________________________________
>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. 		 	
>  		  
>	[[alternative HTML version deleted]]
>
>______________________________________________
>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.




More information about the R-help mailing list