Responsible for building an interactive {plotly} graphic containing the trend line for number of CRAN pkg downloads by month.
Arguments
- data
a data.frame containing monthly download data, built using
generate_comm_data(). This argument is optional, but ifNULL, apkg_namemust be provided.- pkg_name
a string of a package name. This parameter is optional. If
pkg_nameis provided, the data argument should beNULL.
Example
build_comm_plotly(pkg_name = "ggplot2")