response_hour_hist {studentlife}R Documentation

response_hour_hist

Description

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

Usage

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

d <- tempdir()
download_studentlife(location = d, url = "testdata")

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

response_hour_hist(tab_PAM)


[Package studentlife version 1.1.0 Index]