Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modifying elements within raincloud plots #27

Open
colizoli opened this issue Sep 27, 2022 · 2 comments
Open

modifying elements within raincloud plots #27

colizoli opened this issue Sep 27, 2022 · 2 comments

Comments

@colizoli
Copy link

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
Copy link
Owner

pog87 commented Sep 30, 2022

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
Copy link
Owner

pog87 commented Sep 30, 2022

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.

@pog87 pog87 closed this as completed Sep 30, 2022
@pog87 pog87 reopened this Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants