[R] graph for selected lines in stars()

Tito de Morais Luis Luis.Tito-de-Morais at ird.sn
Thu Aug 7 13:20:48 CEST 2003


Dear listers,

The following command (derived from the example in the ?stars help page)
works :

data(mtcars)
stars(mtcars[, 1:7])

But the following gives an error:
stars(mtcars[1, 1:7])
Error in s.y[i, ] : incorrect number of dimensions

I was expecting to have the star graph for the first line (Mazda Rx4)

The following give an incorrect graph for the first two cars :
stars(mtcars[1:2, 1:7])

The following gives the correct graphs for all cars:
stars(mtcars[1:32, 1:7])

How can I have correct graphs for a selection of lines ?

I am using R 1.7.1 on linux Mandrake 9.1

Thank you for your help

Tito


> version
         _
platform i686-pc-linux-gnu
arch     i686
os       linux-gnu
system   i686, linux-gnu
status
major    1
minor    7.1
year     2003
month    06
day      16
language R

-- 
L. Tito de Morais
      UR RAP
   IRD de Dakar
      BP 1386
       Dakar
      Sénégal

Tél.: + 221 849 33 31
Fax: +221 832 16 75
Courriel: tito at ird.sn




More information about the R-help mailing list