juba / explor

Interfaces for Multivariate Analysis in R
https://juba.github.io/explor/
193 stars 13 forks source link

expecting to support supplymentary category ellipses on individual plot #42

Closed 419kfj closed 2 years ago

419kfj commented 2 years ago

Thank you for your support of the Supplementary variable/individual of GDAtools objects.

I use it on 0.3.8 and found that there is no function to overlay the concentration ellipses on the individual cloud.

I am expecting that "explor" will support this function.

regards.

kazuo

juba commented 2 years ago

Hi,

Concentration ellipses should work in individual plots from speMCA results. You have to choose a variable to color points with, and then check the "Ellipses" checkbox.

It doesn't work for you ? Did you try with the development version ?

419kfj commented 2 years ago

juba, thank you for your quick reply.

I am using 0.3.9 and I tried to choose a variable but, there is no supplementary category.

The labels are only, "None", "Type", "TV, "Film", "Art", "Eat". (I got the Taste_example data from Prof. Le Roux's Web site, and am reading "Multiple Correspondence Analysis"SAGE, 2010)

Of course I can confirm that there are "Supplementary variables to display" check boxes in the left block and they are displayed in the variable plot.

How can I get the development version?

kazuo

juba commented 2 years ago

Oh, you meant that the supplementary variables are not displayed in the drop down menu to color points. Sorry I didn't understand at first, and you're right, I can reproduce the issue and I'll take a look into it.

To install the development version you can do the following, but for now the problem is not fixed yet.

install.packages("remotes")  # If necessary
remotes::install_github("juba/explor")
419kfj commented 2 years ago

Julien,

Thank you for your reply.

OK, I will wait for the fix the issue ;-)

Best wishes

kazuo

2022年8月22日(月) 21:31 Julien Barnier @.***>:

Oh, you meant that the supplementary variables are not displayed in the drop down menu to color points. Sorry I didn't understand at first, and you're right, I can reproduce the issue and I'll take a look into it.

To install the development version you can do the following, but for now the problem is not fixed yet.

install.packages("remotes") # If necessaryremotes::install_github("juba/explor")

— Reply to this email directly, view it on GitHub https://github.com/juba/explor/issues/42#issuecomment-1222292458, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6W37PKFQEJ3PEWLD4GCVTV2NXJNANCNFSM57ECJT3Q . You are receiving this because you authored the thread.Message ID: @.***>

juba commented 2 years ago

Ok, I think this should now be fixed in the development version. Don't hesitate to let me know if the issue is still present.

419kfj commented 2 years ago

Julien,

I downloaded the development version. Then I check the documentation of this package, and I find the title "Documentation for package ‘explor’ version 0.3.9.9000", so it is the development version.

But the result is the same. I can't find a supplementary category on the individual plot panel, (As I wrote the previous message, I can confirm them at the Variable plot panel.)

I attached the data object which is constructed as follows.

res.speMCA$supv <- varsup(res.speMCA, .d_a$Age) # Add the Age as the supplementary variable to main result, res.speMCA, and save it as res.speMCA.rda. save(res.speMCA,file = "res.speMCA.rda") explor::explor(res.speMCA) # I tried it.

regards.

This is individual plot panel. [image: image.png]

This is Variable plot panel.

[image: image.png]

kazuo

2022年8月22日(月) 22:55 Julien Barnier @.***>:

Ok, I think this should now be fixed in the development version. Don't hesitate to let me know if the issue is still present.

— Reply to this email directly, view it on GitHub https://github.com/juba/explor/issues/42#issuecomment-1222398585, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6W37IIPGTU2X4I47IQDU3V2OBGVANCNFSM57ECJT3Q . You are receiving this because you authored the thread.Message ID: @.***>

juba commented 2 years ago

I know it is not very intuitive, but for supplementary variables you must not use GDAtools::varsup but explor::speMCA_varsup, as explained in the introduction vignette.

So in your case your code should be :

res.speMCA$supv <- speMCA_varsup(res.speMCA, .d_a$Age) 
419kfj commented 2 years ago

Oh! Embarrassing!

speMCA_varsup is explor::speMCA_varsup. I thought it was from GDAtools function。

I tried again。 It worked!

Thank you!

Does it work with 0.3.9?

kazuo

2022年8月22日(月) 23:27 Julien Barnier @.***>:

I know it is not very intuitive, but for supplementary variables you must not use GDAtools::varsup but explor::speMCA_varsup, as explained in the introduction vignette https://juba.github.io/explor/articles/introduction_en.html#gdatools-functions .

So in your case your code should be :

res.speMCA$supv <- speMCA_varsup(res.speMCA, .d_a$Age)

— Reply to this email directly, view it on GitHub https://github.com/juba/explor/issues/42#issuecomment-1222440103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6W37JWJTN6WHQWRD2CLBLV2OE5NANCNFSM57ECJT3Q . You are receiving this because you authored the thread.Message ID: @.***>

juba commented 2 years ago

No, it only works on the development version for the moment. It will work on the next CRAN version, but I don't know when it will be published.

419kfj commented 2 years ago

I see, thank you for your support!

I will share this information with my research colleagues.

best wishes.

kazuo

2022年8月23日(火) 6:02 Julien Barnier @.***>:

No, it only works on the development version for the moment. It will work on the next CRAN version, but I don't know when it will be published.

— Reply to this email directly, view it on GitHub https://github.com/juba/explor/issues/42#issuecomment-1223036179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6W37MLYDQIKSP46MZ5ME3V2PTH5ANCNFSM57ECJT3Q . You are receiving this because you authored the thread.Message ID: @.***>

--

津田塾大学 数学・計算機科学研究所 特任研究員 Project Researcher Institute for Mathematics and Computer Science (Sakushin Gakuin University, Prof.Emeritus) Web http://419kfj.sakura.ne.jp/db/ 2015『対応分析入門』,2020『対応分析の理論と実践』