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

Plot by group #46

Open
antagomir opened this issue Apr 30, 2022 · 1 comment
Open

Plot by group #46

antagomir opened this issue Apr 30, 2022 · 1 comment

Comments

@antagomir
Copy link
Member

The plotSeries function can be used to plot and compare several taxa over e.g. time.

But sometimes we need to plot and compare several individuals / subjects over time w.r.t. one taxa, or another variable like alpha diversity.

Suggestion to implement a function that allows handy comparison of multiple time series from different groups.

@antagomir
Copy link
Member Author

antagomir commented Apr 30, 2022

Along these lines

ggplot(as.data.frame(colData(tse)), aes(x = time, y=shannon, group = subject)) + geom_line()

but allowing one to easily choose any given numeric colData field, or taxonomic group on the Y axis, as a handy wrapper:

plotSeries(tse, x=time, y=selected.field, group=subject, ....)

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

No branches or pull requests

1 participant