Closed dimitriderooij closed 6 years ago
Thanks! This was my own carelessness, using
as.numeric(as.factor(x))
to convert a possibly character or factor x
to pure numeric. I'm not sure what the best way to do this is, but i've substituted
cumsum(!duplicated(x))
in a recent commit. It solves the problem for me, using your example. Please let me know if it doesn't work for you! (I'll revisit this when i have more time and make a more careful fix; leaving this issue open for that reason.)
While tweaking your examples, i also discovered a bug that i'd introduced in a previous fix (causes an error when no aesthetics are declared); that's also fixed. I'm glad to have been prompted to examine it soon after the error. : )
Your commit works for me, thanks for the quick response! I'll leave it open as you requested, let me know if I need to close it.
Hi, I like what you did with ggalluvial. However I'm struggling to create a plot with many axes. I'm starting to think it is a bug with ggalluvial, but maybe I'm just doing something wrong.
I use a dataframe with one row per alluvium where each alluvium can have one of three states and can change state each quarter.
When I try to plot all these quarters in one plot (e.g. using 20 axes) a few flows are not plotted. When I split the plot into three plots each containing a maximum of 9 axes all flows are plotted.
I'm using ggplot 2.2.1. Any help would be appreciated.
Code to reproduce: