account_activity: Account Activity Plot for a Twitter Account

View source: R/accountactivity.R

account_activityR Documentation

Account Activity Plot for a Twitter Account

Description

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

Usage

account_activity(
  account_name,
  depth = 3200,
  time_zone = "Africa/Johannesburg",
  no_of_weeks = 4,
  token = NULL
)

Arguments

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.

Examples

account_activity("jack",
   depth = 3200,
   time_zone = "America/Los_Angeles",
   no_of_weeks = 4,token = NULL)

Arf9999/rtweetXtras documentation built on June 27, 2022, 5:10 a.m.