Plot_column_marginal: Plot the column wise data distribution.

Description Usage Arguments Details Value See Also Examples

View source: R/Plot_column_marginal.R

Description

Plot_column_marginal is a function used to plot the columned wise data distributions. (marginal distribution for each sample)

Usage

1
2
Plot_column_marginal(M, TYPE = "violine", HDER = "", GROUP_LABEL = NULL,
  VALUE_LABEL = "value")

Arguments

M

A matrix.

TYPE

Can be one in "violine", "box", and "density".

HDER

The subtitle and the file name of the plot.

GROUP_LABEL

Optional, a vector used for colour labeling or faceting the box plot and density plot, the length should equal to the column number of M.

VALUE_LABEL

Optional, The label for the entries of M.

Details

By default, the column names of the matrix M will be used as the sample labels, other wise, it will use V_1:ncol(M).

Value

A plot for column wised marginal distribution visualization.

See Also

Plot_column_joint

Examples

1
2
3
4
5
6
Matrix_ex <- matrix(rnorm(9000),300,30)
Group_lab <- paste0( "V_",rep(1:10,each = 3) )

Plot_column_marginal( Matrix_ex, "violine", "Test2", Group_lab )
Plot_column_marginal( Matrix_ex, "density", "Test1", Group_lab )
Plot_column_marginal( Matrix_ex, "box", "Test2", Group_lab )

ZhenWei10/meripQC documentation built on May 13, 2019, 11:51 p.m.