bar_plot_mentions: Twitter Mentions Barplot for rtweet Package

bar_plot_mentionsR Documentation

Twitter Mentions Barplot for rtweet Package

Description

This function creates a barplot of mentioned screen_names (default top 20) in an rtweet tibble of tweets

Usage

bar_plot_mentions(rtweet_df, no_of_bars = 20, title = NULL)

Arguments

rtweet_df

A dataframe/tibble of tweets created by rtweet package through twitter API call.

no_of_bars

The number of bars in the plot. Default is 20.

title

The title of the barplot in quotation marks. Default of NULL returns the name of the rtweet tibble and the number of bars.

Examples

df <- rtweet::get_timelines("jack", n=3200)
bar_plot_mentions(df, no_of_bars = 25, title = "Jack's Mentions")

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