Learn R Programming

DataVisualizations (version 1.1.12)

InspectBoxplots: Enables to Insptecd the Boxplots for Multiple variables

Description

This function creates a boxplot for each variable of the data matrix. Each boxplot also has a point for the mean of the variable.

Usage

InspectBoxplots(Data, Names,Means=TRUE)

Arguments

Data

Matrix containing the data. Each column is one variable.

Names

Optional: Names of the variables. If missing the columnnames of data are used.

Means

Optional: TRUE: with mean, FALSE: Only median.

Value

The ggplot object of the boxplots

Examples

Run this code
# NOT RUN {
x <- cbind(A = rnorm(200, 1, 3), B = rnorm(100, -2, 5))
InspectBoxplots(x)
# }

Run the code above in your browser using DataLab