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

controlling order in streamgraph #15

Open
anobel opened this issue Oct 6, 2015 · 1 comment
Open

controlling order in streamgraph #15

anobel opened this issue Oct 6, 2015 · 1 comment

Comments

@anobel
Copy link

anobel commented Oct 6, 2015

This is a fantastic widget, thank you for developing it. I had a question regarding order of the categories. Currently, it is controlled by the ordering of the factor levels, as far as I can see. Is it possible to control the order using an order= option, like in ggplot?

@jrounds
Copy link

jrounds commented Nov 5, 2015

Haha,

I just googled streamgraph github to ask this same question. It makes the streamgraph look conspicuously sloppy compared to published streamgraphs to not be able to bundle the minor factors together. Otherwise though a very easy to use widget!

Edit:
What I ended up doing was prepending (a), (b), (c), etc to the factor level names. Extra notation, but an alpha sorting then gives you control over the order

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

2 participants