jespermaag/gganatogram

Facetting only works if facet variable is named "type"

ja-doe opened this issue · 0 comments

ja-doe commented

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".