Displaying 1 result from an estimated 1 matches for "bxplt".
Did you mean:
bplt
2009 Oct 27
0
boxplot using grid
...vignette as well as slides by Paul Murrell, I have tried to implement a boxplot using the graphical primitives from the grid package.
I, however, always seem to have problems with the scale or rather, the data do not match the axis. Below is the function and code run. I am using R2.9.0
# Function
bxplt <- function(x, range = 2){
require(grid)
bxp <- boxplot(x, range = range, plot = FALSE)
O <- bxp$out
On <- length(O)
grid.yaxis()
grid.lines(
rep(unit(0.5, "npc"), 2),
c(unit(bxp$stats[1], "native"),
unit(bxp$stats[5], "native")),
na...