ParameterSetScatterPlot: Plot a scatter plot for different clustering parameters

Description Usage Arguments Value

View source: R/clusterviz.R

Description

x-axis is the parameters tested (e.g. many different k.param) y-axis is the total number of clusters and total number of stable clusters based on the jaccard cutoff as determined by AssignStableClusters, or precentage of cells in stable clusters.

Usage

1
2
3
4
5
6
7
8
ParameterSetScatterPlot(
  stable_clusters,
  fullsample_idents,
  x_var,
  y_var,
  facet_rows,
  facet_cols
)

Arguments

stable_clusters

a dataframe with list-columns for data, stable_cluster determined by AssignStableCluster and the rest of the columns are pc, resolution and k_param.

fullsample_idents

a dataframe with the list-column contain the original ident for the full dataset. This is the direct output from the Snakemake workflow.

x_var

one of "pc", "resolution" and "k_param".

y_var

one of "number" or "percentage". If it is "number", y-axis si the total number of clusters and total number of stable clusters.

facet_rows

one of "pc", "resolution" and "k_param" for ggplot2 to facet.

facet_cols

one of "pc", "resolution" and "k_param" for ggplot2 to facet.

Value

a ggplot2 object


crazyhottommy/scclusteval documentation built on Aug. 5, 2021, 3:20 p.m.