View source: R/accountactivity.R
account_activity | R Documentation |
This function creates a bubble plot of account activity by hour of a single twitter screen_name (inspired by python script by twitter user "@Conspirator0")
account_activity( account_name, depth = 3200, time_zone = "Africa/Johannesburg", no_of_weeks = 4, token = NULL )
account_name |
A twitter screen_name, in quotes. |
depth |
The maximum depth of tweets to be visualised. Starts from most recent tweet. Twitter API maximum and default is 3200. Only those tweets occuring in the no_of_weeks param will be shown |
time_zone |
The timezone of the account. Requires timezone in format of TZ database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) in quotes. Default is "Africa/Johannesburg" |
no_of_weeks |
The number of weeks to display. Default is 4. Plot will automatically scale to exclude any period without activity. |
token |
A twitter oauth token. Default is NULL, and will utilise an existing token loaded into environment, but can be over-ridden to use a particular token. |
account_activity("jack", depth = 3200, time_zone = "America/Los_Angeles", no_of_weeks = 4,token = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.