I have a data frame like that called samples_type:
Status variable value
PAT SPP1 1,994629e+00
PAT SPP1 1,179033e+00
PAT SPP1 2,901539e+00
PAT SPP1 1,140857e+00
PAT SPP1 1,467056e+00
PAT SPP1 2,579037e+00
The "Status" column can take two values: PAT or CON. The "variable" column can take many values: SPP1, CCL24, ENG56 ...
I would like to make boxplots of values for each combination of Status:variable.
For the moment I have two codes:
boxplot(value ~ Status:variable, data=samples_type,
col=c("red", "limegreen"), las=2, outline=F)
and:
p0 <- ggplot(data = samples_J0_type, aes(x=variable, y=value)) +
geom_boxplot(aes(fill=Status)) +
facet_wrap( ~ variable, scales="free")
The first code give me all the boxplots in ONE GRAPH without outliers. I want to separate them as par(mfrow=c(...,...)) will do it. How can I do that?
With the second code I used ggplot2. I managed to separate the boxplots BUT as you can see, I didn't manage to delete the outliers and my boxplots are to small because of the outliers. How can I delete the outliers? I checked on StackOverFlow how to delete outliers with ggplot2, I found an answer for ONLY ONE boxplot but not for multiple boxplots. And I have no idea on how to do that...
EDIT: boxplots of each code