carmonalab / ProjecTILs

Interpretation of cell states using reference single-cell maps
GNU General Public License v3.0
246 stars 28 forks source link

Unclosed radar plots for plot.states.radar #75

Closed DavidJDeGeorge closed 2 months ago

DavidJDeGeorge commented 6 months ago

I am having trouble with the radar plots. For some reason they aren't closing (the first and last points aren't connected) so the shading is all off. In the examples, the radar plots look fine though.

I have attached an example.

image

mass-a commented 6 months ago

Hello David, can you share a reproducible example that shows this behavior? and your SessionInfo?

mass-a commented 6 months ago

Indeed I have now also experienced this behavior. I traced it down to a recent ggplot2 update, as also reported here: https://github.com/tidyverse/ggplot2/issues/5660

We'll work on updating the visualization, thanks for reporting.

mass-a commented 2 months ago

Just following up on this - we have updated the visualization of radar plots to circumvent the issue of unclosed radar plots; we now use a barplot in polar coordinates, hopefully it remains interpretable.