response_hour_hist: response_hour_hist

Description Usage Arguments Examples

View source: R/SL_tbl_explore.R

Description

This function produces a histogram that visualizes the frequencies of observations within hourly blocks, or blocks of multiple hours.

Usage

1
2
3
4
5
6
7
response_hour_hist(
  tab,
  break_hours = 10,
  xlab = "Hours into study",
  main = paste0("Distribution of ", attr(tab, "table"), " response times"),
  ...
)

Arguments

tab

A StudentLife tibble with time information, (i.e., and object of class timestamp_SL_tbl or interval_SL_tbl) as can be returned by the function load_SL_tibble.

break_hours

Specify the width in hours of each histogram bin.

xlab

Argument passed to hist.

main

Argument passed to hist.

...

Arguments passed to hist.

Examples

1
2
3
4
5
6
d <- tempdir()
download_studentlife(location = d, url = "testdata")

tab_PAM <- load_SL_tibble(schema = "EMA", table = "PAM", location = d)

response_hour_hist(tab_PAM)

frycast/studentlife documentation built on April 25, 2021, 11:09 a.m.