Hi, I try to make a selective plot, but it make an error. The subset only work with length < 4, it is correct?>plot((ocorrencia/isca)~frag,subset=especieama==c("grupo1","grupo2","grupo3","AnoplotermesSp1","NeocapritermesOpacus"),pch=c(1,2,3,4,5),xlab="?rea (ha)",ylab="Propor??o de iscas ocupadas por t?rmitas") Warning messages: 1: longer object length is not a multiple of shorter object length in: is.na(e1) | is.na(e2) 2: longer object length is not a multiple of shorter object length in: "==.default"(especieama, c("grupo1", "grupo2", "grupo3", "AnoplotermesSp1", I make the plot using points, but I want to know if this is a bug or real limitation in subset comparison. I use R-1.7.1 Thanks Ronaldo -- I have discovered that all human evil comes from this, man's being unable to sit still in a room. -- Blaise Pascal -- |> // | \\ [***********************************] | ( ? ? ) [Ronaldo Reis J?nior ] |> V [UFV/DBA-Entomologia ] | / \ [36571-000 Vi?osa - MG ] |> /(.''`.)\ [Fone: 31-3899-2532 ] | /(: :' :)\ [chrysopa at insecta.ufv.br ] |>/ (`. `'` ) \[ICQ#: 5692561 | LinuxUser#: 205366 ] | ( `- ) [***********************************] |>> _/ \_Powered by GNU/Debian Woody/Sarge
On Mon, 21 Jul 2003, Ronaldo Reis Jr. wrote:> Hi, > > I try to make a selective plot, but it make an error. The subset only work > with length < 4, it is correct? > > > > > plot((ocorrencia/isca)~frag, > subset=especieama==c("grupo1","grupo2","grupo3","AnoplotermesSp1","NeocapritermesOpacus"), > pch=c(1,2,3,4,5),xlab="Área (ha)",ylab="Proporção de iscas ocupadas por > térmitas") > Warning messages: 1: longer object length > is not a multiple of shorter object length in: is.na(e1) | is.na(e2) > 2: longer object length > is not a multiple of shorter object length in: "==.default"(especieama, > c("grupo1", "grupo2", "grupo3", "AnoplotermesSp1", > > I make the plot using points, but I want to know if this is a bug or real > limitation in subset comparison. >No. You probably wanted especieama %in% c("grupo1","grupo2","grupo3","AnoplotermesSp1","NeocapritermesOpacus") rather than = -thomas