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

Facet for empty documents shown incorrectly when no match occurs and scale = "relative" #16

Open
kbenoit opened this issue Feb 8, 2022 · 0 comments
Assignees

Comments

@kbenoit
Copy link
Contributor

kbenoit commented Feb 8, 2022

There should be a gray section for the 2013-Obama speech for "nuclear" corresponding the same area for "econom*".

library("quanteda")
## Package version: 3.2.0
## Unicode version: 13.0
## ICU version: 69.1
## Parallel computing: 8 of 8 threads used.
## See https://quanteda.io for tutorials and examples.

toks <- data_corpus_inaugural %>%
  corpus_subset(President == "Obama") %>%
  tokens()
kw1 <- kwic(toks, "nuclear")
kw2 <- kwic(toks, "econom*")

library("quanteda.textplots")
textplot_xray(kw1, kw2, scale = "absolute")
## Warning: Use of `x$ntokens` is discouraged. Use `ntokens` instead.

@kbenoit kbenoit self-assigned this Feb 8, 2023
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

1 participant