yt.CommentsOverTime: Graphs of Comments on a Video Over Time

Description Usage Arguments Value

View source: R/ytAnalytics.R

Description

This function produces two charts related to the temporal distribution of comments on a video over time. The input to the function is the dataframe from the yt.VideoComments() function. The first chart is a daily representation of number of comments each day, starting with the date of the first comment and ending on the date of the most recent comment. The second chart is the cumulative number of comments on the video over time.

Usage

1
yt.CommentsOverTime(videoComments = NULL, note = "", breakBy = "day")

Arguments

videoComments

Dataframe object created with the yt.VideoComments() function. Must have the variables "author_display_name" and "dateTime".

note

Character. A note to put on the chart, such as the video ID or some other reference.

breakBy

Character. Set the breaks in the date sequence on the x-axis. Takes one of five values: 'day','week','month','quarter','year'

Value

Plots two charts, a histogram showing comment density over time and a cumulative line for total comments over time.


Vintonm49/ytcol documentation built on May 27, 2019, 7:42 a.m.