Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include ellipse to plot_ordination #58

Open
locon833 opened this issue Jun 30, 2015 · 4 comments
Open

include ellipse to plot_ordination #58

locon833 opened this issue Jun 30, 2015 · 4 comments

Comments

@locon833
Copy link

Is there a command to add ellipse around cluster in your NMDS or PCoA plots?

x1=plot_ordination(sponge.scale1,unifrac.nmds,color="Day")+geom_point(size=3)

I tried following:
https://www.biostars.org/p/126454/

but hit a roadblock at
ord = ordinate(GP1~Day, "CCA", "bray")
Error in eval(expr, envir, enclos) : object 'Day' not found
In addition: Warning message:
First argument, physeq, as formula is deprecated.
There is now an explicit formula argument.
Please revise method call accordingly.

@joey711
Copy link
Owner

joey711 commented May 16, 2016

I'll add this very soon...

@spholmes
Copy link
Contributor

Joey
If you look at the code in the paper I wrote with Sue Huse and Ana on
prevotella and lifestyle in microbiome, there are several ellipse examples
to go on.

I used the ellipse package

Susan

On Mon, May 16, 2016 at 9:34 AM, Paul J. McMurdie [email protected]
wrote:

I'll add this very soon...


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#58 (comment)

Susan Holmes
Professor, Statistics and BioX
John Henry Samter Fellow in Undergraduate Education
Sequoia Hall,
390 Serra Mall
Stanford, CA 94305
http://www-stat.stanford.edu/~susan/

@joey711
Copy link
Owner

joey711 commented May 17, 2016

Thanks @spholmes ! Actually, ellipses are finally natively supported in ggplot2, so I was simply going to add an ellipse layer. I think it takes function inputs as alternative ellipse definitions. If so, I may peak at your examples and the ellipse package to expose those alternatives.

Right now I'm a bit distracted adding the plotly/D3 interactive versions, on a separate branch ftm. I should add this to that branch as a working demo before pushing into the master.

@orenkolodny
Copy link

Have ellipses been added, by any chance? I don't see anything in the documentation.
Thanks!
Oren

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants