plot_perplexity: plot_perplexity

Description Usage Arguments Value

View source: R/plot_perplexity.R

Description

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

Usage

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

Arguments

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

Value

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


bvidgen/RPackage documentation built on April 18, 2018, 8:26 p.m.