R: ggdotplot issues: how to change colors

210 views Asked by At

I have some questions regarding dotplots in R using ggdotplot. There are several issues but I would like to focus on just one for now: I would like to change the fill-color and shape of the "mean_sd" to yellow and a diamond to contrast with the dots. add.params = list(color='"black", fill="yellow", shape = 18, size=1) does not work. I have searched online for examples but can't find any. Here is the minimal example.

library(ggplot2)
library(dunn.test)
library(conover.test)
library(ggsignif)
library(tidyverse)
library(ggpubr)
library(rstatix)
library(DescTools)

data("ToothGrowth")
df <- ToothGrowth

ggdotplot(data, x = "dose", y = "len", fill = "supp", add = "mean_sd", 
add.params = list(fill="yellow", shape=1, size=1))

The packages listed are used with the rest of my code.

Thanks!

0

There are 0 answers