plotGridSearchPerplexitycelda_CG {celda} | R Documentation

## Plot perplexity as a function of K and L from celda_CG models

### Description

This function plots perplexity as a function of the cell/gene (K/L) clusters as generated by celdaGridSearch().

### Usage

    plotGridSearchPerplexitycelda_CG(celdaList, sep)

### Arguments

`celdaList` | Object of class 'celdaList'.
`sep` | Numeric. Breaks in the x axis of the resulting plot.

### Value

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

### Examples

    data(celdaCGSim, celdaCGGridSearchRes)
    celdaCGGridSearchRes <- resamplePerplexity(
      celdaCGSim$counts,
      celdaCGGridSearchRes
    )
    plotGridSearchPerplexity(celdaCGGridSearchRes)

[Package celda version 1.2.4 Index]