Learn R Programming

specmine (version 3.1.6)

boxplot_variables: Boxplot of variables

Description

Boxplot of each variable of the dataset.

Usage

boxplot_variables(dataset, variables = NULL, samples = NULL, 
horizontal = TRUE, col = "lightblue", nchar.label = 10, 
cex.axis = 0.8, ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

variables

vector with the variables names or a NULL value indicating all variables.

samples

vector with the samples names or a NULL value indicating all samples.

horizontal

boolean value indicating if the boxplots should be horizontal.

col

string that represents the color of the bodies of the boxplots.

nchar.label

number of characters to display the variables' names.

cex.axis

numeric value that indicates the amount by which the axis is magnified relative to the default.

additional parameters of boxplot function.

Examples

Run this code
# NOT RUN {
  ## Example of showing the boxplot of a few variables
  library(specmine.datasets)
  data(cachexia)
  boxplot_variables(cachexia, variables = c("Creatine","Serine","Lactate"))
# }

Run the code above in your browser using DataLab