Trying to create a grouped box and whiskers

Hello all!
I am quite new with R and R-Studio and I am currently trying to make a grouped boxplot, which did not work with SPSS. I have created a dataframe (Tidy_Supporting) with three columns (Group, location, countings).
If I run the following code :

library(ggplot2)
ggplot(data = Tidy_Supporting, mapping = aes(x=location, y=countings, fill=Group)) + geom_boxplot()+ labs(y="Total Supporting Cells") +labs(x="Cochlea Location")

Which gives me the following boxplot:

However, I want to delete all the 'Tot-Supp' text, so only the 'A1' text remains. Also, I want to change the order of the plotted boxes from the alphabet into B1,M1,M2,A1,A2,A3.

The last thing I want to change is the line into whiskers.

Can anyone help me out? I am forever grateful!! :slight_smile:

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.