twitterClusterGraph: Cluster Graph of Tweets on certain Topic

Description Usage Arguments Details Examples

Description

Which words are closer to each other? Cluster Graph of Tweets on certain Topic.

Usage

1
2
twitterClusterGraph(tweets, minDocFreq = 0.9, groups = 6,
  title = "AUD/USD", dir = "~/analytics/common/")

Arguments

tweets

a list of corpus and data.frame of tweets retreived from tweet_corpus_chunck() or tweet_corpus{}

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

Details

Please use RQuantAPI for twitter data retrieval

Examples

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")

ivanliu1989/RQuantTrader documentation built on Sept. 13, 2019, 11:54 a.m.