
Last chance! 50% off unlimited learning
Sale ends in
This function is a wrapper to the standard boxplot()
function in the graphics package. It adds detail to the stored object so that a better text description can be formulated using the VI()
method in the BrailleR package.
boxplot(x, ...)
An object of class boxplot. This class is just a placeholder for the contents of the object used to create a boxplot which would otherwise not be stored in a usable format. The class is not intended for the user; it is a tool that enables the BrailleR package to deliver a readable text version of the plot.
a numeric variable.
additional arguments passed on to the plotting function.
A. Jonathan R. Godfrey
This function masks the function of the same name in the graphics package. The base R implementation does create an object, but does not give it a class attribute, the object does not store all graphical arguments that are passed to the boxplot()
function. The functionality should be no different at all for anyone who is not using the VI()
function to gain a more detailed text description of the boxplot. See the help page for the graphics::boxplot()
function to get a more complete description of boxplot creation.
The problem of not including class attributes for graphs was identified in: Godfrey, A.J.R. (2013) ‘Statistical Software from a Blind Person's Perspective: R is the Best, but we can make it better’, The R Journal 5(1), pp73-79.
x=rnorm(1000)
op = par(mfcol=c(2,1))
# the stamdard boxplot function returns
MyBoxplot=graphics::boxplot(x, main="Example boxplot (graphics package)", horizontal=TRUE)
MyBoxplot
# while this version returns
MyBoxplot=boxplot(x, main="Example boxplot (BrailleR package)", horizontal=TRUE)
MyBoxplot
par(op)
# The VI() method then uses the extra information stored
VI(MyBoxplot)
Run the code above in your browser using DataLab