Reputation: 13
I want to make a function which from a text input produces a word frequency graph like this in the picture. This picture is taken from a report, so I am not sure how they have made it.
Upvotes: 0
Views: 5440
Reputation: 2865
There's much more work here that a single function. The following links contain code of projects that perform similar tasks. You could reuse them in your program.
Also, check out the accepted answer of Algorithm to implement a word cloud like Wordle, it's an answer by the creator of Wordle in which he explain the basic algorithm.
Upvotes: 1