powered by
This function creates a boxplot for each variable of the data matrix. Each boxplot also has a point for the mean of the variable.
InspectBoxplots(Data, Names,Means=TRUE)
Matrix containing the data. Each column is one variable.
Optional: Names of the variables. If missing the columnnames of data are used.
Optional: TRUE: with mean, FALSE: Only median.
The ggplot object of the boxplots
# 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