Description Usage Arguments Author(s) Examples
Set the subpopulations manually by a logical criterion (TRUE -> "A", FALSE -> "B", NA -> NA)
1 | make_partition_by_logical(H, log_vec)
|
H |
|
log_vec |
logical vector of the same length as samples in |
Daniel Samaga
1 2 3 4 5 | Hds <- hetset(D = matrix(data = rnorm(n = 500),ncol = 100))
Hds <- make_partition_by_logical(H = Hds,log_vec = runif(100)>0.42)
Hds@metadata$color_type = "subpop"
Hds@metadata$slf = "F1"
plot_hetset(Hds)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.