plot_tailor_majpheno: plot_tailor_majpheno

Description Usage Arguments Value Examples

View source: R/tailor_methods.R

Description

Plot a t-SNE reduction to 2d of the cluster centroids.

Usage

1

Arguments

tailor_obj

A tailor object, as obtained from tailor.learn.

Value

A 2d reduced plot of cluster centroid, color-coded by major phenotype.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
fileName <- system.file("extdata", "sampled_flowset_old.rda",
                         package = "Tailor")
load(fileName)
tailor_params <- flowCore::colnames(fs_old)[c(7:9, 11:22)]
tailor_obj <- tailor_learn(data = fs_old,
                          params = tailor_params,
                          mixture_components = 50)

defs <- read.csv("~/git/R/packages/Tailor/inst/extdata/pheno_definitions.csv",
                 row.names = 1, stringsAsFactors = FALSE)
tailor_obj <- categorical_labeling(tailor_obj, defs)

plot_tailor_majpheno(tailor_obj)

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