runchart: Create a run chart fields for dataframe 'df'.

Description Usage Arguments Value Examples

View source: R/runchart.R

Description

Create a run chart fields for dataframe df.

Usage

1
2
runchart(df, shift = TRUE, trend = TRUE, rephase = FALSE,
  output = "plot")

Arguments

df

a data.frame which must consist of exactly two columns: a column of type Date called date and a column of numeric type called value.

shift

include shifts? Defaults to TRUE.

trend

include trends? Defaults to TRUE.

rephase

rephase baselines? Defaults to FALSE.

output

return a dataframe or a plot? Either one of c("plot"), ("df") Defaults to "plot".

Value

Either a data.frame with runchart fields, or a plot.

Examples

1
2
3
4
5
df <- data.frame(
date  = seq.Date(Sys.Date(), by = "day", length.out = 30),
value = c(4,3,3,2,2,3,3,4,4,4,4,3,3,2,2,1,2,1,0,3,3,4,5,6,7,9,8,7,6,6)
)
runchart(df)

jsphdms/runchart documentation built on Oct. 30, 2017, 9:44 p.m.