-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
59 lines (39 loc) · 1.35 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
[![Travis-CI Build Status](https://travis-ci.org/rcorty/actogrammr.svg?branch=master)](https://travis-ci.org/rcorty/actogrammr)
[![Coverage Status](https://img.shields.io/codecov/c/github/rcorty/actogrammr/master.svg)](https://codecov.io/github/rcorty/actogrammr?branch=master)
# 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:
```{r cran-installation, eval = FALSE}
install.packages(pkgs = 'actogrammr')
```
Or, if you want the newest features, you can install from github:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("rcorty/actogrammr")
```
## Data Import
```{r example, eval = FALSE}
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
```{r bin-data, eval = FALSE}
b <- bin_data(data = d, minutes_per_bin = 6)
```
## Plotting
```{r plot-actogram, eval = FALSE}
plot_actogram(data = b, start_date = '2010-01-01')
```