knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Travis-CI Build Status Coverage Status

actogrammr

The goal of actogrammr is to read in data on cirdacian activity, process it, and plot it, e.g. in an actogram.

Installation

You can install the latest release of actogrammr with:

install.packages(pkgs = 'actogrammr')

Or, if you want the newest features, you can install from github:

# install.packages("devtools")
devtools::install_github("rcorty/actogrammr")

Data Import

library(actogrammr)

f <- file.path(system.file(package = 'actogrammr'), 'testdata')
d <- read_clock_lab_file(file_name = list.files(path = f, full.names = TRUE)[1])

Data Processing

b <- bin_data(data = d, minutes_per_bin = 6)

Plotting

plot_actogram(data = b, start_date = '2010-01-01')


rcorty/actogrammr documentation built on May 29, 2019, 8:06 a.m.