labs_cyto: Change axis labels and legend titles

Description Usage Arguments Value Examples

View source: R/labs.R

Description

The actual labels text will be instantiated when it is added to ggcyto plot.

Usage

1
labs_cyto(labels = "both")

Arguments

labels

default labels for x, y axis. Can be "channel" , "marker", or "both" (default)

Value

a list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))

# default is "both"
p <- ggcyto(gs, aes(x = CD4, y = CD8), subset = "CD3+") + geom_hex(bins = 64)
p

#use marker name as x,y labs
p + labs_cyto("marker")

#use channel name as x,y labs
p + labs_cyto("channel")

ggcyto documentation built on Nov. 8, 2020, 5:30 p.m.