jespermaag / gganatogram

Create anatograms using ggplot2
379 stars 52 forks source link

Facetting only works if facet variable is named "type" #36

Open ja-doe opened 10 months ago

ja-doe commented 10 months ago

Hi, Thank you so much for your work and for providing this package. The plots look amazing!

Here is one thing that took me a while to figure out. When using facet_wrap to facet the plot, it only works when the facet variable is named type. Using any other name results in the following error: Error in combine_vars(data, params$plot_env, vars, drop = params$drop)

I would kindly suggest to allow for other variable names or to make it explicit in the documentation that the variable has to be named "type".