mt_plotpairs: Plot multiple combinations of sample gene expressions in a...

Description Usage Arguments Value Author(s) Examples

View source: R/mt_plotpairs.R

Description

Plots the gene expression from multiple samples in a mmt object in a grid plot with all pairs of variables.

Usage

1
2
mt_plotpairs(mmt, samples = NULL, label_by = NULL, textsize = 5,
  linesize = 0.5, pointsize = 2)

Arguments

mmt

(required) A mmt list loaded with mt_load.

samples

A vector of 3 or more sample names in mmt to plot on each axis. If NULL, the default, then all samples will be plotted. (Default: NULL)

label_by

replace the SampleIDs plotted in the diagonal with one(!) column in the metadata.

textsize

The text size of the axis titles.

linesize

The size of lines in the plot(s).

pointsize

The size of points in the plot(s).

Value

A ggplot2 object.

Author(s)

Thomas Yssing Michaelsen tym@bio.aau.dk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data("example_mmt")

# Plot all samples (might take some time)
mt_plotpairs(example_mmt)

# Plot replicates and relabel.
mt_plotpairs(example_mmt,samples = c("HQ180323_13","HQ180323_14"),label_by = "Replicate")

## End(Not run)

TYMichaelsen/mmtravis documentation built on Aug. 5, 2019, 10:48 a.m.