Structure_omega: Structure Plot of GoM model proportions (Base plot version)!

Description Usage Arguments Value Examples

View source: R/Structure_omega.R

Description

This function takes the cluster membership probability or omega matrix from topics() in maptpx or FitGoM() function in CountClust along with sample metadata and outputs and saves a non-ggplot2 version of the Structure plot.

Usage

1
2
Structure_omega(omega, samp_metadata, batch_lab, path_struct = NULL,
  partition = rep("TRUE", ncol(samp_metadata)), control = list())

Arguments

omega

the cluster membership probability/omega matrix returned by rows and topics along columns.

samp_metadata

the sample metadata, samples along the rows and each column representing some metadata information that will be used to arrange the Structure plot columns (one plot for one arrangement).

batch_lab

the batch labels, the output will have one Structure plot arranged by batch labels too.

partition

A logical vector of same length as metadata. partition[i]=TRUE will imply that for the Structure plot for i th metadata, no vertical line parititon between classes is used.

path

The directory path where we want to save the data and Structure plots.

control()

A list of control parameters for the Structure plot. The control list has the arguments struct.width, struct.height, cex.axis, cex.main, lwd, las and color and margin parameters.

Value

Returns a non-ggplot Structure plot visualization of GoM model.

Examples

1
# Structure_omega()

kkdey/CountClust documentation built on Feb. 14, 2018, 4:26 p.m.