Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting full model set first triggers plotting selected model to prompt for next plot #118

Closed
ethanwhite opened this issue Mar 15, 2019 · 0 comments
Milestone

Comments

@ethanwhite
Copy link
Member

Plotting a single LDA model (e.g., the last command in Stage 1 of the vignette) is expected to produce a single plot. Plotting the full set of models produces a bunch of plots that are incremented over using a prompt. However, if I accidentally try plotting the full set of models, escape out of the prompt, and then plot the single model I want, I get a prompt even though there is only one plot and that plot isn't displayed until I hit .

library(LDATS)
data(rodents)
lda_model_set <- LDA_set(document_term_table = rodents$document_term_table,
                         topics = c(2:6),
                         nseeds = 5,
                         control = LDA_controls_list(quiet = TRUE))
selected_lda_model <- select_LDA(lda_model_set)
plot(lda_model_set) # Accidentally plot the full set of models
> plot(selected_lda_model[[1]])
Hit <Return> to see next plot: 
@juniperlsimonis juniperlsimonis added this to the v0.2.0 milestone Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants