Description Usage Arguments Value
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.
1 | yt.CommentsOverTime(videoComments = NULL, note = "", breakBy = "day")
|
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:
|
Plots two charts, a histogram showing comment density over time and a cumulative line for total comments over time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.