I want to make a boxplot with the iris dataframe. The field Species is factor with 3 levels of setosa, versicolor and virginica. When I filter out setosa, it removes the boxplot from the graph but what I want is for setosa to still be there on the x axis. How can I do this?
library(tidyverse)
iris%>%
filter(Species!="setosa")%>%
ggplot(aes(x=Species, y=Sepal.Length,fill=Species)) +
geom_boxplot()