sap_timeline: A Timeline function

Description Usage Arguments Examples

Description

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.

Usage

1
sap_timeline(o, testfield, timefield)

Arguments

o

The object to be evaluated

testfield

The field to be monitored for changes within the samples

timefield

The sample datetime field

Examples

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')

thepks/sapr documentation built on May 13, 2019, 8:14 a.m.