JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.5k stars 47 forks source link

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

Open hxpGit512 opened 2 weeks ago

hxpGit512 commented 2 weeks ago

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

alshan commented 2 weeks ago

Hi, we didn't have this planned, but it looks like an important and needed feature. Thank you for the suggestion; we will try to add it in one of the future releases this year.

hxpGit512 commented 2 weeks ago

已收件