flPlotDensThresh: Plots a given density and true/predicted thresholds, if...

Description Usage Arguments Value Examples

Description

Plots a given density and true/predicted thresholds, if supplied. True thresholds are drawn as red lines. Predicted thresholds are drawn as blue lines. If no thresholds are specified, they are not drawn.

Usage

1
2
flPlotDensThresh(dens, thresh = NULL, predicted = NULL, xlab = "Channel",
  ylab = "Density")

Arguments

dens

A R density object such as returned from the stats::density function.

thresh

The true threshold in the given density. (optional)

predicted

The predicted threshold in the given density.

xlab

The label of the x-axis (defaults to "Channel")

ylab

The label of the y-axis (defaults to "Density")

Value

Nothing

Examples

1
2
3
4
5
6
dd <- flFind(flSampleDensdat, population = 'myeloid', channelIdx = 1)
protoIdx <- flSelectPrototypes(dd, 1)
ddp <- flPredictThresholds(dd, protoIdx)

par(mfrow = c(3,1))
for(i in 1:3) flPlotDensThresh(flGetDensity(flAt(ddp, i)), flGetGate(flAt(dd, i)), flGetGate(flAt(ddp, i)))

mlux86/flowLearn documentation built on May 29, 2019, 5:43 a.m.