david-barnett / microViz

R package for microbiome data visualization and statistics. Uses phyloseq, vegan and the tidyverse. Docker image available.
https://david-barnett.github.io/microViz/
GNU General Public License v3.0
99 stars 10 forks source link

RShiny app problems #25

Closed marypiper closed 3 years ago

marypiper commented 3 years ago

When testing out the RShiny app functionality with the corncob dataset, few of the Selections worked with the app or didn't change the plot. For example, for 'shape', the race option (in addition to many others) generated the error: 'Error: ids don't have the same length than str (most often, it occurs because of clipping)'. Also, the lasso it doesn't always allow accurate selection - the data points I encircle are not the only points selected. Not sure why some of the time it works and other times it doesn't.

david-barnett commented 3 years ago

Thanks for highlighting these issues.

david-barnett commented 3 years ago

I think I have resolved the issue with the shapes error (as far as is possible) in the latest development version. Since commit: c12e01f19da5b6bf3078950d5e4aa97890d5d124 the user can select only variables with a max of 5 distinct levels (not including NA) for use as the shape mapping. A custom shape palette is now used which avoids using the composite shapes that were used by ggplot2 default and were causing the ggiraph dependency's error: Error: ids don't have the same length than str (most often, it occurs because of clipping)

I have also added a larger description of how to use the app to the ord_explore docs that might help somewhat with the other problems. Of course, please do let me know if you still have some issues with ord_explore.

I can't reproduce your experience of inaccurate lasso selection, what OS and web browser are you using? Is it selecting nearby points or completely incorrect points? Thanks!