1

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)

enter image description here

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)

enter image description here

However, in ggplot : WITH outliers

tmp %>% ggplot(aes(x = query, y = n)) + geom_boxplot() 

enter image description here

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)

enter image description here

JDie
  • 651
  • 5
  • 6

0 Answers0