[R] error type

David L Carlson dcarlson at tamu.edu
Sun Aug 26 23:12:50 CEST 2012


Look at your plot command. You included type="o" twice. 

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of aprendiz programa
> Sent: Sunday, August 26, 2012 4:02 PM
> To: r-help at r-project.org
> 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 mzltiplos argumentos
> especificados
> DATA:
> 44 40 39 38  0  7  7  1030 57 37 5146 40 41 4737 34 36 2636 28 33 3738
> 26 28 2742 38 36 3636 27 22 2853 43 33 40
> 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","2
> 009"))axis(2,0:60)
> 	[[alternative HTML version deleted]]




More information about the R-help mailing list