Create a plot showing the improvement in the log-likelihood as the rank of the matrix factorization or the number of topics (“k”) increases.
plot_loglik_vs_rank(fits, ggplot_call = loglik_vs_rank_ggplot_call)
loglik_vs_rank_ggplot_call(dat, font.size = 9)
A list with 2 more list elements, in which each list
element is an object of class "poisson_nmf_fit"
or
"multinom_topic_model_fit"
. If two or more fits share the
same rank, or number of topics, the largest log-likelihood is
plotted.
The function used to create the plot. Replace
loglik_vs_rank_ggplot_call
with your own function to
customize the appearance of the plot.
A data frame passed as input to
ggplot
, containing, at a minimum, columns
“x” and “y”.
Font size used in plot.
A ggplot
object.