time_series_plot: time series plot across different interventions

Description Usage Arguments Examples

View source: R/nof1gen.summary.R

Description

time series plot across different interventions

Usage

1
2
time_series_plot(nof1, date_start = NULL, date_end = NULL,
  date.format = "%m/%d/%Y %H:%M", title = NULL)

Arguments

nof1

nof1 object created using nof1.data

timestamp

time of the nof1 event occurring

timestamp.format

format of the timestamp

Outcomes.name

used to label y-axis outcome variable

Examples

1
2
3
4
5
Y <- laughter$Y
Treat <- laughter$Treat
nof1 <- nof1.data(Y, Treat, ncat = 11, baseline = 'Usual Routine', response = 'ordinal')
timestamp <- seq(as.Date('2015-01-01'),as.Date('2016-01-31'), length.out = length(Y))
time_series_plot(nof1, timestamp = timestamp, timestamp.format = '%m-%d-%Y', Outcome.name = 'Stress')

arisp99/nof1gen documentation built on May 19, 2019, 9:37 p.m.