powered by
Produces rudimentary ascii boxplots. The boxplot statistics are produced using the boxplot.stats function.
boxplot.stats
txtboxplot(..., range = 1.5, legend = NULL, xlab = NULL, width = round(options()$width * 0.8))
Numeric vectors for which a boxplot should be produced
This determines how far the plot whiskers extend out from the box. See boxplot.stats and the coef function for details.
coef
Logical determining whether a legend should be drawn. If legend is NULL there will be a legend drawn in case there is more than one boxplot.
legend
label for x-axis of boxplot, if NULL no x-label will be plotted
Width of the plot
txtplot
# NOT RUN { rand1 <- rnorm(100, 1, 2) rand2 <- rnorm(50, 2, 2) rand3 <- rnorm(50, 2, 5) txtboxplot(rand1) txtboxplot(rand1, rand2, rand3) # }
Run the code above in your browser using DataLab