plot_gating_strategy: plot_gating_strategy

View source: R/hypergate.R

plot_gating_strategyR Documentation

plot_gating_strategy

Description

Plot a hypergate return

Usage

plot_gating_strategy(
  gate,
  xp,
  gate_vector,
  level,
  cex = 0.5,
  highlight = "black",
  path = "./",
  ...
)

Arguments

gate

A hypergate object (produced by hypergate())

xp

The expression matrix from which the 'gate' parameter originates

gate_vector

Categorical data from which the 'gate' parameter originates

level

Level of gate_vector identifying the population of interest

cex

size of dots

highlight

color of the positive population when plotting

path

Where png files will be produced

...

passed to png

Examples

data(Samusik_01_subset)
xp=Samusik_01_subset$xp_src[,Samusik_01_subset$regular_channels]
gate_vector=Samusik_01_subset$labels
hg=hypergate(xp=xp,gate_vector=gate_vector,level=23,delta_add=0.01)
par(mfrow=c(1,ceiling(length(hg$active_channels)/2)))
plot_gating_strategy(gate=hg,xp=xp,gate_vector=gate_vector,level=23,highlight="red")

ebecht/hypergate documentation built on Feb. 4, 2024, 3:29 p.m.