inspect_1D_mixtures: inspect_1D_mixtures

Description Usage Arguments Value Examples

View source: R/tailor_methods.R

Description

Plot the result of 1D mixture model calculation for visual inspection. Displays, for each marker, three side-by-side plots, giving a kernel density estimate for the data and that marker, the Gaussian mixture, and the separate mixture components, respectively.

Usage

1
inspect_1D_mixtures(data, mixtures_1D, params)

Arguments

data

A flowSet, flowFrame or a matrix containing events along the rows, markers along columns.

mixtures_1D

1D mixture models, as produced by get_1D_mixtures.

params

A list of markers to use; must be subset of colnames(data).

Value

Side-by-side plots of kdes and mixture components.

Examples

1
2
3
4
5
6
7
fileName <- system.file("extdata", "sampled_flowset_old.rda",
                        package = "Tailor")
load(fileName)
tailor_params <- flowCore::colnames(fs_old)[c(7:9, 11:22)]
mixtures_1D <- get_1D_mixtures(fs_old, tailor_params)

inspect_1D_mixtures(fs_old, mixtures_1D, tailor_params)

matei-ionita/Tailor documentation built on Jan. 4, 2021, 11:47 a.m.