I have a Quanteda Corpus of 10 documents several of which are by the same author. I store the author in a separate docvar column –
> docvars(myCorpus) author 206035 author1 269823 author2 304225 author1 422364 author2 <...snip..>
I’m charting a Lexical Dispersion Plot with xplot_xray,
textplot_xray( kwic(myCorpus, "image"), kwic(myCorpus, "one"), kwic(myCorpus, "like"), kwic(myCorpusus, "time"), kwic(myCorpus, "just"), scale = "absolute" )
How can I use
myCorpus$documents[,"author"] as the document identifier instead of the Document ID?
I’m not trying to group the docs, I just want to identify the document by the author. I recognize that Doc IDs need to be unique so can’t simply rename the docs with