Description Usage Arguments Value Author(s)
Generic plot function for Mi Data. Using rChart library to plot.
1 2 |
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 |
ggplot object
Borg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.