top_tweets | R Documentation |
Create a tweet for top retweets and other stats
top_tweets( all_tweets, save_dir = tempdir(), post_tweet = TRUE, top_number = 5, hashtag = "rspatial", fill = c("#1e73be", "#BF223C", "#79C698"), token = NULL, the_month_name )
all_tweets |
Table of tweets to explore |
save_dir |
Path where to save images that will be tweet |
post_tweet |
Logical. Whether to really tweet the content |
top_number |
Numeric. Number of best retweeted tweets to show on the graph |
hashtag |
Character. Which Twitter hashtag is followed |
fill |
Vector of colors to be used in the graphics. Length 1 for all the same, or length 3 resp. for: top retweeted, tweets per day, contributors per day |
token |
Expert use only. Use this to override authentication for
a single API call. In most cases you are better off changing the
default for all calls. See |
the_month_name |
Character. Month name that appear on graph. Default to last month name. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.