GGplot – how to not treat points as outliers?

In the below script, outliers on the boxplot are shown as individual scatter points. Instead, I would like the creation of the boxplot to include these and to not treat these points as outliers. Consequently, the box would be extended to include them.

ggplot(imp,aes(Group,LWG,fill=Group))+geom_boxplot()

As per the below picture, the bottom of the left boxplot would extend downwards further.

enter image description here



Read more here: https://stackoverflow.com/questions/68465241/ggplot-how-to-not-treat-points-as-outliers

Content Attribution

This content was originally published by Andrew Cooke at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: