I have a data frame like this
head(data)
n OESST wsB
4 0.52924690 4
8 0.04488144 6
6 0.29909668 6
0 1.42228888 6
2 1.92228888 4
4 1.85659560 6
and I am doing a box plot of OESST
as a function of wsB
for the different n
values
ggplot(na.omit(data), aes(x=factor(wsB), y=OESST, colour = factor(n))) + geom_boxplot(outlier.size=0,fill = "white",position="dodge",size=0.3,alpha=0.3) + stat_summary(fun.y=median, geom="line", aes(group=factor(n), colour = factor(n)),size=1)
What I would like to do is to remove from the plot the unique n-wsB
combinations (which are visualized only as a line but don't have actually a box).
Any help?
Thanks