plot_summary: Generate figures for the summary of the NPDS notification...

View source: R/npds_notifications.R

plot_summaryR Documentation

Generate figures for the summary of the NPDS notification database

Description

Generate figures for the summary of the NPDS notification database

Usage

plot_summary(x, type, n_years)

Arguments

x

object from summary.npds_notification_db()

type

character which can be either "ggplot" or "plotly" and will determine the output value of this function.

n_years

integer that determines the number of years that will be displayed in the facet plots.

Value

list with ggplot or plotly objects depending on the value of the type argument.


renejuan/DERTtools documentation built on March 19, 2022, 7:20 a.m.