View source: R/dygraphClassified.R
dygraphClassified | R Documentation |
This opens a java application which allows the user to zoom in and out. In Rstudio it will open in the viewer pane and in base R in an html readers. Note that this can be a bit slow
dygraphClassified(
dta,
from = dta$light$date[1],
to = dta$light$date[length(dta$light$date)],
toPLOT = names(dta),
timetable = timetable
)
dta |
PAM data to be plotted |
from |
date that plotting starts |
to |
date that plotting ends |
toPLOT |
names of the variables to plot. For now this includes |
timetable |
classification of start/stop |
a plot of all the measurements
##load dummy data
#data(hoopoe)
#PAM_data=hoopoe
## This bit is for Rstudio users to prevent html from opening in Viewer pane and crashing
## It opens in web browser instead
#backup_options <- options()
#options(viewer=NULL)
## Classify bir's behaviour
#behaviour = classifyFLAP(dta = PAM_data$acceleration, period = 5)
## Plot interactive graphics
#dygraphClassified(dta = PAM_data, timetable = behaviour$timetable)
## restore Rstudio settings from before plot
#options(backup_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.