The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
ggskewboxplots?The package provides alternative boxplots that help better visualize the skewness and asymmetry in data distributions by using different lower and upper whisker calculations than the classic boxplot.
Since you are developing locally, load the package using:
Here is an example of drawing alternative boxplots of hwy by class in the mpg dataset:
## Warning: package 'ggplot2' was built under R version 4.3.3
You can choose from the following whisker calculation methods by
setting the method argument in geom_skewboxplot():
| Method | Description |
|---|---|
"tukey" |
Classic Tukey boxplot |
"kimber" |
Kimber’s modified method |
"hubert" |
Hubert’s median-based skewness method |
"adil" |
Combination of skewness and median center |
"babura" |
Bowley’s coefficient method (variant 1) |
"walker" |
Bowley’s coefficient method (variant 2) |
"junsawang" |
Bowley coefficient alternative method |
k: Tuning parameter for whisker length (default is 1.5).
For example:
library(gridExtra)
p1 <- ggplot(mpg, aes(x = class, y = hwy)) + geom_skewboxplot(method = "tukey") + ggtitle("Tukey")
p2 <- ggplot(mpg, aes(x = class, y = hwy)) + geom_skewboxplot(method = "kimber") + ggtitle("Kimber")
p3 <- ggplot(mpg, aes(x = class, y = hwy)) + geom_skewboxplot(method = "hubert") + ggtitle("Hubert")
gridExtra::grid.arrange(p1, p2, p3, ncol = 1)These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.