Skip to contents

Responsible for building an interactive {plotly} graphic containing the trend line for number of CRAN pkg downloads by month.

Usage

build_comm_plotly(data = NULL, pkg_name = NULL)

Arguments

data

a data.frame containing monthly download data, built using generate_comm_data(). This argument is optional, but if NULL, a pkg_name must be provided.

pkg_name

a string of a package name. This parameter is optional. If pkg_name is provided, the data argument should be NULL.

Value

a plotly object an interactive plotly object

Example

build_comm_plotly(pkg_name = "ggplot2")

Example Output