plot_gating_strategy {hypergate}R 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")

[Package hypergate version 0.8.5 Index]