[R] Installing rgl

aoife aoife.m.doherty at gmail.com
Wed Feb 22 16:02:57 CET 2012


Thank you for the reply, my problem is that i don't understand the error that
plot(ca) is giving me:

> plot(ca)
Error in matrix(as.matrix(obj), nrow = I, ncol = J) : 
  non-numeric matrix extent


so just to put this in context: my workscreen looks like this:
> table
     A     B     C
G1   1 34.00 231.0
G2 231  1.00   0.1
G3  12  0.02  23.0

> library(ca)
Loading required package: rgl
Warning messages:
1: In rgl.init(initValue) : RGL: unable to open X11 display
2: In fun(libname, pkgname) : error in rgl_init


> ca(table)

 Principal inertias (eigenvalues):
           1        2       
Value      0.924588 0.007655
Percentage 99.18%   0.82%   


 Rows:
               G1        G2        G3
Mass     0.498950  0.435362  0.065689
ChiDist  0.911602  1.079139  0.401921
Inertia  0.414636  0.506996  0.010611
Dim. 1  -0.947585  1.122145 -0.239642
Dim. 2  -0.326025 -0.194244  3.763758


 Columns:
                A         B         C
Mass     0.457683  0.065689  0.476628
ChiDist  1.046690  0.943948  0.883798
Inertia  0.501419  0.058531  0.372293
Dim. 1   1.088538 -0.923587 -0.917983
Dim. 2  -0.001466 -3.656541  0.505351

> plot(ca)
Error in matrix(as.matrix(obj), nrow = I, ncol = J) : 
  non-numeric matrix extent

:(


--
View this message in context: http://r.789695.n4.nabble.com/Installing-rgl-tp865867p4410607.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list