thomasp85 / ggforce

Accelerating ggplot2
https://ggforce.data-imaginist.com
Other
916 stars 106 forks source link

Possible issue with 'gather_set_data'? #285

Closed mrossNSTG closed 9 months ago

mrossNSTG commented 1 year ago

I had been using ggforce v0.3.2 for a while, but upgrading to v0.4.1 created different behavior in the parallel sets functionality. Originally, the 'gather_set_data' created an x column of repeated column headers of the data, which would translate into tidy x-axis tick labels in the final plot. with v.4.1, the function now produces an x column of repeated column numbers, and I cannot find how to rename these once set. Below I've produced the 'Titanic' parallel sets, and note the tick labels 1 to 4: image If I map back the column names to these numbers, the plot will not render. data$x <- colnames(data)[data$x] image image

Thanks again for the really useful package!

ycl6 commented 1 year ago

Hi @mrossNSTG

I also observed this and provided a fix in #305. Maybe it'll help if you are still looking for a solution.