UpDownApp {UpDown} | R Documentation |
The function starts a shiny app which visualizes the data organized by the hierarchical levels, and the estimated start and end point of the detected disturbances
UpDownApp(updown.out,obs=NULL,width=1000,height=1000)
updown.out |
Global output of the |
obs |
(optional) vector of character string specifing the names of the considered longitudinal observations appearing in the dataframe |
width , height |
(optional) interger specifing the width and the height of the plot in the Rshiny. |
No return value, run the application
# load data
data=get(data(PigFarming))
levels=c("batch","pen","id")
updown.out<- UpDown(data,levels=levels, vtime="time", obs="weight",
kappa=0.75, thr_va=0.5, correction="age")
if(interactive()){UpDownApp(updown.out)}