MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.38k stars 302 forks source link

Horizontal lines for boxplot. #3829

Open pitipatw opened 4 months ago

pitipatw commented 4 months ago

Feature description

The horizontal lines at IQR of the boxplot.

This might be a tiny thing but I found it affect how people percieve Boxplot and got confused easily.

For plot types, please add an image of how it should look like

boxplot.png

jkrumbiegel commented 4 months ago

I don't understand what's the ask here.

pitipatw commented 4 months ago

Sorry, let me clarify this a bit. So, currently: GLMakie v0.9.10, CairoMakie v0.11.10, and Makie v0.20.9, If we use boxplot right now, the plot looks like this. image

But normally, boxplot looks like this.

image

notice the horizontal line. I dont think that's currently an option to have in Makie.

pitipatw commented 4 months ago

I found that raincloud has the line, but not the boxplot, maybe we can use the same thing for raincloud with boxplot?

SimonDanisch commented 4 months ago

It's not well documented, but there's:

categories = rand(1:3, 1000)
values = randn(1000)
boxplot(categories, values; whiskerwidth=0.5)

image

pitipatw commented 4 months ago

I see, thank you for pointing this out. So, should there be an update on the boxplot function? I can try to do this.

asinghvi17 commented 4 months ago

You could update the docstring to mention that whiskers can be added by setting the whiskerwidth parameter...

jkrumbiegel commented 4 months ago

after 0.21 all plotting function keywords should get separate examples in the docs anyway, this is one of them

pitipatw commented 4 months ago

You mean each "plotting function keyword" gets its own page or for each "plotting function"?

pitipatw commented 3 months ago

If this part is not currently implemented, I'm willing to collaborate. Can you guide me how to do so?