Closed otichy closed 3 years ago
Hi Ondrej, and thanks for checking! Hopefully this can be resolved easily by consistent use of decreasing
. The parameter is specific to the alluvium statistical transformation (stat_alluvium()
), so you'll want to give it the same specification any time you use stat_alluvium()
or stat = "alluvium"
inside a geom. Try either or both of these changes and let me know if they don't fix it:
decreasing = FALSE
to the geom_text()
call.options(ggalluvial.decreasing = FALSE)
. (This tells the alluvium stat to use this as the default.)Cory, this is great, thanks! I should have realised that it is used & specified repeatedly, not just once.
Hi,
Thanks for the extension! I want to use it to plot collocations of words per year.
Everything seems to work fine except for labels. I tried to label alluvia or strata using all the techniques mentioned in the vignettes: geom_text, ggrepel, ggfittext, geom_label.
They all work well as long as "decreasing" is not set (NA), but once I set decreasing=FALSE the labels keep their position no longer corresponding to their respective strata or alluvia.
Here is an example (collocations of the word "vakcína" in Czech):
works fine and gives me:
but
gives me a wrongly labelled plot:
Is this a bug or am I getting it all wrong?
Best
Ondrej