Motion gram of a view object
motion_gram.Rd
Motion gram of a view object
Arguments
- obj
view object
- maxpts
maximum number of points to plot.
- alpha
ggplot aesthetic value.
- ...
passed to
ggplot2::geom_point()
,
Examples
r1 <- get_sample_recording()
rv1 <- get_raw_view(r1, "Central", "", "Sitar")
pv1 <- get_processed_view(rv1)
dp <- c("LWrist", "RWrist", "LElbow", "RElbow", "LEye", "REye", "MidHip")
fv1 <- apply_filter_sgolay(pv1, data_point = dp, n = 41, p = 4)
sub_fv1 <- subset(fv1, Time >= 0 & Time <= 20, dp, by = 2)
motion_gram(sub_fv1)
#> LWrist_y RWrist_y LElbow_y RElbow_y LEye_y REye_y MidHip_y
#> 0.4165365 0.4134978 0.3207928 0.4914245 0.7580122 0.7619383 0.1734679