Skip to contents

Plot a Metabolite object including boxplot (more to add.).

Usage

plot_Metabolite(
  object,
  plot = "boxplot",
  x = "NEG",
  feature_name = NULL,
  color = "NEG",
  shape = "NEG",
  fill = "NEG",
  random_select = 16,
  size = 0.6,
  n_row = 1,
  n_col = 1,
  ylab = "featureID",
  height = 10,
  width = 10,
  save_to_file = NULL
)

Arguments

object

A Metabolite object.

plot

type of plot, current support `boxplot` and `betweenstats`.

x

The x-axis coordinate.

feature_name

A vector of selected metabolites to plot. If NULL, will randomly select 16 (default) metabolites to plot.

color

A column in `@sampleData` to show the color of points.

shape

A column in `@sampleData` to show the shape of points.

fill

A column in `@sampleData` to show the `fill` for histogram.

random_select

An integer, number of randomly selected metabolites to plot.

size

Point size.

n_row

Number of rows of subfigures for `betweenstats`

n_col

Number of columns of subfigures for `betweenstats`

ylab

Column name to annotate the y-axis in `betweenstats` (eg. "BIOCHEMICAL"), default column: "featureID".

height

Height of the figure.

width

Width of the figure.

save_to_file

Path to save the figure.

Value

A boxplot of a Metabolite object