plot_time_pattern: Plot single or multiple time pattern.

View source: R/plot-time-pattern.R

plot_time_patternR Documentation

Plot single or multiple time pattern.

Description

Plot single or multiple time pattern.

Usage

plot_time_pattern(
  data,
  id = "all",
  ncol = 4,
  reshape_data = TRUE,
  print_prop_duration = TRUE,
  fluid = FALSE,
  labels = NULL,
  legend = TRUE,
  facet = TRUE
)

Arguments

data

data frame which contains time pattern data.

id

vector which contains questionnaire ids.

ncol

number of cols, if there are multiple plots (facets).

reshape_data

whether reshape data or not.

print_prop_duration

whether to print or not to print prop duration data (boolean).

fluid

should be static bars or fluid lines visualized (boolean).

labels

facet labels.

legend

show legend (boolean).

facet

plot facets (boolean).

Value

ggplot2 visualization of time pattern data.


inventionate/TimeSpaceAnalysis documentation built on June 13, 2025, 2:48 p.m.