How do I change the graphics with plotellipses

362 views
Skip to first unread message

Gus

unread,
Sep 28, 2011, 6:14:16 AM9/28/11
to FactoMineR users
I'm trying to change some of the graphics in a plotellipses for a MCA
and I'm having some difficulties with the graphics. Currently, I have
5 graphs (5 variables) with up to six categories in each variable. I
would like to change the default points to a) different colours and b)
different shapes (point, triangles, squares, etc. a different shape
for each category).

Any help would be greatly appreciated.

François Husson

unread,
Sep 29, 2011, 3:07:43 AM9/29/11
to factomin...@googlegroups.com
The plotellipses function doesn't allow you to modifiy the graphics as ytou want. I send you a new version of the plotellipses function that will allow you to do what you want.This new function will be available in the next version of FactoMineR (so in version 1.17 and more).
So since this new version is not yet available on CRAN, you can source the attached file and then plot your ellipses. So with the example :

library(FactoMineR)
source("plotellipses")
data(poison)
res.mca = MCA(poison, quali.sup = 3:4, quanti.sup = 1:2)
plotellipses2(res.mca,pch=20:27,pch.means=c(10:15))

Best
Francois
plotellipses.r
Reply all
Reply to author
Forward
Message has been deleted
0 new messages