Skip to content
Prev 164644 / 398502 Next

candisc plotting

You might try something like

do.can <- candisc(do.mod, data=do)
plot(do.can)

But, in your example there is only one canonical dimension there are 
only two levels of the
factor.

In any case, do.can$scores has the scores, so you can try to plot them 
however you like.

For a 1-D plot in a case where it makes more sense, try

iris.mod <- lm(cbind(Petal.Length, Sepal.Length, Petal.Width, 
Sepal.Width) ~ Species, data=iris)
iris.can <- candisc(iris.mod, data=iris, ndim=1)
 plot(iris.can)


-Michael
Pete Shepard wrote: