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().
visualizePerplexity(perplexity.df, title = "")
A data.frame as described above, or as returned by calculatePerplexityWithResampling()
A subtitle for the plot
A ggplot plot object showing perplexity as a function of clustering parameters
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.