Description Usage Arguments Details Value See Also Examples
View source: R/Plot_column_marginal.R
Plot_column_marginal
is a function used to plot the columned wise data distributions. (marginal distribution for each sample)
1 2 | Plot_column_marginal(M, TYPE = "violine", HDER = "", GROUP_LABEL = NULL,
VALUE_LABEL = "value")
|
M |
A |
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. |
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).
A plot for column wised marginal distribution visualization.
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.