plot_timeseries: Plot time series

View source: R/plot_timeseries.R

plot_timeseriesR Documentation

Plot time series

Description

Plot time series of net events on a second treatment arm

Usage

plot_timeseries(tendril, term = NULL)

Arguments

tendril

An object of class Tendril, as made by Tendril()

term

A character vector describing the value or values of Term to select; defaults to NULL which corresponds to all values

Examples

# generate data using Tendril()
data <- Tendril(
  mydata = TendrilData,
  rotations = Rotations,
  AEfreqThreshold = 9,
  Tag = "Comment",
  Treatments = c("placebo", "active"),
  Unique.Subject.Identifier = "subjid",
  Terms = "ae",
  Treat = "treatment",
  StartDay = "day",
  SubjList = SubjList,
  SubjList.subject = "subjid",
  SubjList.treatment = "treatment"
)

# do plot
plot_timeseries(data, term="AE33")
plot_timeseries(data, term=c("AE33","AE40"))
plot_timeseries(data, term=NULL)

Karpefors/Tendril documentation built on June 12, 2022, 9:22 p.m.