miPlot: Mi Plot

Description Usage Arguments Value Author(s)

Description

Generic plot function for Mi Data. Using rChart library to plot.

Usage

1
2
miPlot(MiData, type, y, col = "blue", bins = 30, by = "week",
  fill = "#575757")

Arguments

MiData

is a list returned by function loadMiData

type

character indicating type of plot. Options are "hist", "ts", "week", "box". "week" plots mean value of the same day in a week, such as mean value of Monday.

y

variable to be plotted as y value. Options are "light", "deep", "sleep", "step". "Sleep" means to plot both light sleep and deep sleep as y values.

col

color to be parsed to ggplot function.

bins

only used in hist

Value

ggplot object

Author(s)

Borg


BigBorg/MiBand_R_Package documentation built on May 5, 2019, 2:42 p.m.