lets-plot icon indicating copy to clipboard operation
lets-plot copied to clipboard

Suggestion for Native Support to Extract Plot Statistics and Add Significance Annotations in Lets-Plot

Open hxpGit512 opened this issue 3 weeks ago • 2 comments

Dear Lets-Plot Team,

I am a big fan of the Lets-Plot library that you have developed. Currently, I am facing some challenges while trying to create a boxplot. Specifically, I am unsure how to extract the statistical results from the boxplot to determine the plotting coordinates.

I would like to add significance information for differences between any two groups, which is crucial for discovering and presenting scientific insights. This is a frequent requirement in my work. In Lets-Plot, the current process to display this information is quite complex. I need to first use libraries like SciPy to calculate significance, then find the appropriate areas above the corresponding boxplots to add lines and significance markers. In the ggplot2 ecosystem, packages such as ggpubr allow for easy calculation, export of differential analysis results, and visualization on existing boxplots/violinplots.

Do you have any plans to implement this functionality natively in Lets-Plot in the future?

Thank you for your time and consideration.

Best regards

ggpubr / ggsignif example: image

letsplot image

hxpGit512 avatar Jun 16 '24 05:06 hxpGit512