How to make the boxplot outline black and only keep dots colorful?
Hello folks,
I made this boxplot:

This is the script:
p_C <- ggplot(data, aes(x = group, y = Cytotoxic.lymphocytes, color =factor(group)))+geom_boxplot()+geom_quasirandom(width=.1)+labs(y = "CTL /MCP")+theme_bw()+theme(legend.position = "none", plot.title = element_text(hjust = 0.5),axis.title.x=element_blank(), axis.title.y = element_text(size = 13, face = "bold", family = "Tahoma"),axis.text.x = element_text(size = 13, face = "bold", family = "Tahoma"), panel.grid.major =element_blank(), panel.grid.minor = element_blank(),panel.background = element_blank(), panel.border = element_blank(), axis.line = element_line())
#### Add p-value
p_C+geom_signif(comparisons = list(c("Relapse", "nonRelapse")),
map_signif_level=TRUE, color = "black")
I want to make my boxplot outline black and only keep the dots colorful to show the groups.
Can anyone help me? I tried to do it by scale_fill_manual()but nothing changed.
Many thanks!
• 960 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Hello Raheleh!
We believe that this post does not fit the main topic of this site.
This is pure R/ggplot not bioinformatics. Please browse (and if you do not find anything, then ask) at StackExchange.
For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.
Cheers!