Learn R Programming

GENEAsphere (version 1.5.1)

plotAccData: plotAccData

Description

Creates a plot of the Acc Data given a resolution.

Usage

plotAccData(x, what = c("sd", "mean", "temperature", "light", "voltage"),
  draw = TRUE, resolution = 200, ...)

Arguments

x

should be an AccData object.

what

What variable to plot against time. Options are:

  1. sd: Standard of movement given the resolutions

  2. mean: Mean of movementgiven the resolutions

  3. temperature

  4. light

  5. voltage

draw

if TRUE, plot a whole new plot. Otherwise, superimpose on to existing plot.

resolution

Resolution of plot to create.

...

resolution of underlying grid.

Details

From the raw data to create a representation of light, temperature and MAGSA (Mean Absolute Gravity Substituted Acceleration).

Creates a line plot at a certain resolution from the GENEAread AccData objects available.

Examples

Run this code
# NOT RUN {
## AccData = read.bin(datafile) # where data file is a GENEActiv .bin file.
## saveRDS(AccData , "AccData.rds")
x = readRDS(system.file("extdata", "AccData.rds", package = "GENEAsphere"))
plotAccData(x, what = ("sd"))
plotAccData(x, what = ("sd"))
plotAccData(x, what = ("mean"))
plotAccData(x, what = ("temperature"))
plotAccData(x, what = ("light"))
plotAccData(x, what = ("voltage"))
# }

Run the code above in your browser using DataLab