pog87/PtitPrince

modifying elements within raincloud plots

Opened this issue · 2 comments

Hi, I have the following questions for the raincloud plots package. I’ve attached my figure and corresponding plots and code for convenience (see ZIP file). Thank you in advance for your help!

  1. How to change the color of the individual data point dots only, without using the palette variable (I was able to change the color to grey of the distributions with the ‘color’ argument to the RainCloud function. I also want the dots to be grey.)

  2. For a 2x2 repeated measures plot, how to connect the individual participants with lines?

  3. For a 2x2 repeated measures plot, how to flip the distributions to the right side of the box plots, but only for the right-most condition of the x-axis?
    olympia_rmanova_questions.pdf
    olympia_questions.zip

pog87 commented

Hi! thanks for your interest in this package.

  1. the current way of changing color is the palette itself. the following might do the trick:
f, ax = plt.subplots(figsize=(7, 5))

grey_palette = sns.set_palette(sns.color_palette(["#808080","#808080"]))

ax=pt.RainCloud(x = "group", y = "score", data = df, palette = grey_palette)
pog87 commented

2/3. There is currently no way of obtaining the repeated measure plot without deeply editing the package source 😢 .
If you, on anyone is able to do so, I'd be happy to review some pull request.