-
Notifications
You must be signed in to change notification settings - Fork 44
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
Beta diversity plot examples #111
Comments
Was this done already, I have some memories..? |
@jepasan could you make this as a warm-up? Just suggest one solution first, we can take it from there. Make a PR to OMA beta diversity chapter. At least the "hitchip1006" demo data set from miaTime package has 1000+ individuals, and multiple time points for some of those individuals. So the beta diversity plot (PCoA) can be done for the 1000+ individuals, then connect points with lines for one or more individuals on that map. If unclear, we can chat more in Slack. |
Can this be sufficient?
|
Perhaps just for 5-10 individuals? |
Too complex for training purpose. Try this idea:
|
My code was just an example, I did not test it. Does this work in your case
|
Yes, this links the required points perfectly. thanks |
Can you check if you can add arrows that point from timepoint 1 to timepoint 2.... That might be more tricky, might require incorporating additional data that is not already present in the object. ggplot_build() function can help you to check the data present |
Or just use shape_by for time points and then use it similarly as colour_by That might be better and simpler approach |
I think (not sure) that time points are plotted in the order that they occur in the data. If you first sort samples by time as a processing step, then do the plotting, perhaps it works without extra tricks? |
Add an example showing how pairs of points can be connected on beta diversity map.
The text was updated successfully, but these errors were encountered: