-
Notifications
You must be signed in to change notification settings - Fork 188
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
Confusing colors on the textplot_keyness plot. #1233
Comments
Thanks for the feedback. @koheiw and I are in the process of fixing this plot, and will add to #1211 the issue about the words. I think they should be black by default. Also, when there just two classes, we will have the legend label read the name of the reference document, rather than the generic "Reference". Yes, you should be able to change the plot using ggplot2 |
Awesome! Off topic, thank you for building this package. It's truly powerful and has been the basis of building out my companies text analytics platform! I will be posting all the code in my GitHub! |
Thanks! I look forward to seeing that. Feel free to leave a testimonial at #461. |
Two issues we have now discovered, in the course of investigating this:
corpus_subset(data_corpus_inaugural, President %in% c("Obama", "Trump")) %>%
dfm(remove = stopwords("english"), remove_punct = TRUE) %>%
textstat_keyness(target = "2017-Trump") %>%
textplot_keyness()
corpus_subset(data_corpus_inaugural, President %in% c("Obama", "Trump")) %>%
dfm(remove = stopwords("english"), remove_punct = TRUE, groups = "President") %>%
textstat_keyness(target = "Trump") %>%
textplot_keyness() |
when plotting keyness, the colors used are red and blue, blue being the target. The target bars are blue but the text is red. Why the difference? Also, can we pass ggplot arguments to textplot to alter the style?
The text was updated successfully, but these errors were encountered: