Tf-idf visualization not showing words in descending order


It would be easier to help if you post a sample of your data. To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

That being said, you might be looking for the reorder_within() function from tidytext. Here is a blog post describing how it works:

1 Like