Description Usage Arguments Examples
The function calculates logical start and end times for an observation to support timeline drawing. The timeline itself is draw by subsequent processing of the returned data.
1 | sap_timeline(o, testfield, timefield)
|
o |
The object to be evaluated |
testfield |
The field to be monitored for changes within the samples |
timefield |
The sample datetime field |
1 2 3 | timeline_data <- sap_timeline(rawdata,'OBJECT_NAME','dt')
timeline_data %>% group_by(start_time,OBJECT_NAME) %>% ggplot() + geom <- segment(aes(x=start_time, xend=dt,y=OBJECT_NAME, yend=OBJECT_NAME,colour=OBJECT_NAME),size=6)+theme(legend.position='none')+labs(title='Sample Timeline')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.