Learn R Programming

celda (version 0.0.0.9000)

visualizePerplexity: Visualize perplexity as a function of cell/gene clustering

Description

This function plots perplexity as a function of the cell/gene (K/L) clusters as generated by celda(). It accepts a perplexity dataframe as generated by calculatePerplexityWithResampling().

Usage

visualizePerplexity(perplexity.df, title = "")

Arguments

perplexity.df

A data.frame as described above, or as returned by calculatePerplexityWithResampling()

title

A subtitle for the plot

Value

A ggplot plot object showing perplexity as a function of clustering parameters

Details

The provided #' data frame should have columns for at least one of K or L (the clusterings provided by celda()), and a column for the perplexity calculated for the corresponding chain.