yt.Network: Network Diagram for Comments on Related Videos

Description Usage Arguments Value

View source: R/ytAnalytics.R


This function takes the dataframe and generates a network diagram with the nodes being comment authors and videos. The dataframe must have columns named "comment_ID", "author_display_name", and "video_ID". The dataframes created with the yt.ChannelComments() and yt.RelatedVideoComments() functions work well in this function. The size of the nodes for comment authors indicates the relative number of videos that author has commented on in the original set of related videos. The function subsets the related video comments dataframe by authors that have commented on at least the minimum number of videos, so as to focus on authors who have commented on multiple videos as more interesting entities.


yt.Network(relatedComments = NULL, minVideos = 1)



Dataframe object created with the yt.RelatedVideoComments function. Must have the variables "author_display_name" and "video_ID".


Numeric for the minimum number of videos the author has commented on in the original set of related videos. Default is 1. Subsets authors with equal to or greater than the minVideos numeric.


Plots a network diagram with nodes being comment authors and video IDs.

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