Description Usage Arguments Details Examples
Which words are closer to each other? Cluster Graph of Tweets on certain Topic.
1 2 | twitterClusterGraph(tweets, minDocFreq = 0.9, groups = 6,
title = "AUD/USD", dir = "~/analytics/common/")
|
tweets |
a list of corpus and data.frame of tweets retreived from |
minDocFreq |
minimum frequenciesof each term in percent in all documents |
groups |
number of clusters |
title |
title to be added to the results plots |
dir |
directory to save the plots |
Please use RQuantAPI
for twitter data retrieval
1 2 3 4 5 | setupTwitterConn()
tweets <- tweet_corpus_chunck(search = "aud+usd", n = 50000, chunck_size = 7, total_size = 90, until = Sys.Date())
saveRDS(tweets, '~/analytics/Workspace/Tweets.RDS')
tweets = readRDS('~/analytics/Workspace/Tweets.RDS')
twitterClusterGraph(tweets, minDocFreq = 0.95, groups = 6, title ="AUD/USD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.