I can make a simple boxplot in baseR : in this example the boxplot represents the counts number(n) explained by queries (query) :
boxplot(tmp$n ~ tmp$query)
Sometimes we don't want to show the outliers, the code is straightforward and it automatically resizes the y-axis.
boxplot(tmp$n ~ tmp$query, outline = FALSE)
However, in ggplot : WITH outliers
tmp %>% ggplot(aes(x = query, y = n)) + geom_boxplot()
Although the code does not show the outliers, the y-axis does not change. Any suggestion ?
tmp %>% ggplot(aes(x = query, y = n)) + geom_boxplot(outlier.shape = NA)