Learn R Programming

actogrammr (version 0.2.3)

plot_actogram: plot_actogram

Description

plots an actogram

Usage

plot_actogram(data, start_date = min(data$date), end_date = max(data$date))

Arguments

data

the activity data to plot

start_date

the start time

end_date

the end time

Value

the plot

Examples

Run this code
# NOT RUN {
f <- file.path(system.file(package = 'actogrammr'), 'testdata')
d <- read_clock_lab_files(file_names = list.files(path = f, full.names = TRUE))
b <- bin_data(data = d, minutes_per_bin = 6)
# }
# NOT RUN {
plot_actogram(data = b, start_date = '2010-01-01')
# }

Run the code above in your browser using DataLab