Learn R Programming

analyzer (version 1.0.1)

consoleBoxplot: Boxplot on the console

Description

consoleBoxplot prints the boxplot on console.

Usage

consoleBoxplot(x)

Arguments

x

a numeric vector of length at least 3

Value

prints a boxplot on the console which has:

  • | at start and end means the minimum and maximum value respectively

  • <==*==> The IQR region

  • * shows the median

  • ... everything else in between

Gives a warning of potential outliers (if present)

Details

This function is for the numeric vectors. It prints a boxplot in a single line on the console. It automatically adjusts for the width of the console. The input vector must have a length of three, otherwise the function will throw a warning and not print any plot.

In case of any potential outliers (based on 1.5*IQR criteria), this wil give a warning. This function is used in the explainer.

Examples

Run this code
# NOT RUN {
consoleBoxplot(mtcars$mpg)

# }

Run the code above in your browser using DataLab