## Not run:
# if(!require("imudata")){
# install_imudata()
# library("imudata")
# }
#
# data(imu6)
#
# # Example 1 - Only gyros
# test1 = imu(imu6, gyros = 1:3, axis = c('X', 'Y', 'Z'), freq = 100)
# df1 = wvar.imu(test1)
# plot(df1)
#
# # Example 2 - One gyro and one accelerometer
# test2 = imu(imu6, gyros = 1, accels = 4, freq = 100)
# df2 = wvar.imu(test2)
# plot(df2)
#
# # Example 3 - 3 gyros and 3 accelerometers
# test3 = imu(imu6, gyros = 1:3, accels = 4:6, axis = c('X', 'Y', 'Z'), freq = 100)
# df3 = wvar.imu(test3)
# plot(df3)
#
# # Example 4 - Custom axis
# test4 = imu(imu6, gyros = 1:2, accels = 4:5, axis = c('A', 'B'), freq = 100)
# df4 = wvar.imu(test4)
# plot(df4)
# ## End(Not run)
Run the code above in your browser using DataLab