Question: (Closed) How to make the boxplot outline black and only keep dots colorful?
gravatar for Rahil
12 months ago by
Rahil180 wrote:

Hello folks,

I made this boxplot:

enter image description here

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!

ggplot2 R boxplot • 303 views
ADD COMMENTlink modified 12 months ago • written 12 months ago by Rahil180

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.


ADD REPLYlink written 12 months ago by ATpoint45k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1475 users visited in the last hour