Tech Diary
November 21, 2018
R Boxplot excluding outliers
if (!require(ggplot2)) install.packages('ggplot2')
library(ggplot2)
...
ggplot(somedata, aes(x = col1, y = col2)) +
xlab("Time") +
ylab("Amount") +
geom_boxplot(outlier.shape = NA) # exclude outliers
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment