Description Usage Arguments Value

View source: R/plot_perplexity.R

Plots the perplexity values for K, alpha and beta, showing each fold as a point and the average as a line

1 | ```
plot_perplexity(data.frame, value.write, xintercept.write, logx)
``` |

`data.frame` |
Dataframe. Perplexity values returned by fit.topics.perplexity(), fit.alpha.perplexity() and fit.beta.perplexity() |

`value.write` |
Character. What perplexity is calculated for; either 'K', 'Alpha' or 'Beta' |

`logx` |
Logical. Whether to plot the x axis logarithmically (often useful for Beta and Alpha plots) |

`x.intercept.write` |
Numeric. Optional parameter: value of x-intercept to plot a vertical dotted red line showing chosen value |

ggplot2 plot showing the values of perplexity (both each fold and the average)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.