[R] Installing rgl
R. Michael Weylandt
michael.weylandt at gmail.com
Wed Feb 22 20:00:53 CET 2012
I haven't been following this thread so I may be off base, but are you
sure you don't mean plot(ca(table))?
ca is a function from the ca package -- you want to plot the output of
the function, not the function itself.
Sorry if this is unhelpful,
Michael
On Wed, Feb 22, 2012 at 10:02 AM, aoife <aoife.m.doherty at gmail.com> wrote:
> 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.
>
> ______________________________________________
> 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