Title: | Imports, Processes, and Visualizes Biomechanical Pressure Data |
---|---|
Description: | Allows biomechanical pressure data from a range of systems to be imported and processed in a reproducible manner. Automatic and manual tools are included to let the user define regions (masks) to be analyzed. Also includes functions for visualizing and animating pressure data. Example methods are described in Shi et al., (2022) <doi:10.1038/s41598-022-19814-0>, Lee et al., (2014) <doi:10.1186/1757-1146-7-18>, van der Zward et al., (2014) <doi:10.1186/1757-1146-7-20>, Najafi et al., (2010) <doi:10.1016/j.gaitpost.2009.09.003>, Cavanagh and Rodgers (1987) <doi:10.1016/0021-9290(87)90255-7>. |
Authors: | Scott Telfer [aut, cre, cph] |
Maintainer: | Scott Telfer <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.5 |
Built: | 2025-03-10 16:30:48 UTC |
Source: | https://github.com/telfer/pressure |
Produces animation (gif) of pressure data
animate_pressure( pressure_data, plot_colors = "default", fps, dpi = 96, file_name )
animate_pressure( pressure_data, plot_colors = "default", fps, dpi = 96, file_name )
pressure_data |
Array. A 3D array covering each timepoint of the measurement. z dimension represents time |
plot_colors |
String |
fps |
Numeric. Number of frames per second in animation |
dpi |
Numeric. Resolution of gif |
file_name |
Name (inlcuding path) of export file |
Animation in gif format
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) animate_pressure(pressure_data, fps = 10, file_name = "pli_gif.gif")
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) animate_pressure(pressure_data, fps = 10, file_name = "pli_gif.gif")
Calculate Arch Index.
arch_index(pressure_data, plot = TRUE)
arch_index(pressure_data, plot = TRUE)
pressure_data |
List. Includes a 3D array covering each timepoint of the measurement. z dimension represents time |
plot |
Logical. Not implemented yet |
Numeric. Arch index value
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) arch_index(pressure_data)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) arch_index(pressure_data)
Detects which foot plantar pressure data is from (left or right), usually would only be needed for barefoot pressure plate data. Generally reliable but may be thrown off by severe deformities or abnormal walking patterns
auto_detect_side(pressure_data)
auto_detect_side(pressure_data)
pressure_data |
List. First item should be a 3D array covering each timepoint of the measurement. z dimension represents time |
String. "LEFT" or "RIGHT"
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) auto_detect_side(pressure_data)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) auto_detect_side(pressure_data)
Generates xy coordinates for center of pressure during each frame of measurement
cop(pressure_data)
cop(pressure_data)
pressure_data |
List. First item is a 3D array covering each timepoint of the measurement. z dimension represents time |
Data frame with x and y coordinates of COP throughout trial
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) cop(pressure_data)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) cop(pressure_data)
Determine Center of Pressure Excursion Index (CPEI) for footprint pressure data
cpei(pressure_data, foot_side, plot_result = TRUE)
cpei(pressure_data, foot_side, plot_result = TRUE)
pressure_data |
List. First item is a 3D array covering each timepoint of the measurement. Not currently available for pedar. |
foot_side |
String. "right" or "left". Required for automatic detection of points |
plot_result |
Logical. Plots pressure image with COP and CPEI overlaid |
Numeric. CPEI value
Scott Telfer [email protected]
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) cpei(pressure_data, foot_side = "auto", plot_result = FALSE)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) cpei(pressure_data, foot_side = "auto", plot_result = FALSE)
Automatically creates mask for footprint data
create_mask_auto( pressure_data, masking_scheme, foot_side = "auto", res_value = c(20000, 20000, 1e+05, 20000), plot = TRUE, template_mask = NULL )
create_mask_auto( pressure_data, masking_scheme, foot_side = "auto", res_value = c(20000, 20000, 1e+05, 20000), plot = TRUE, template_mask = NULL )
pressure_data |
List. First item is a 3D array covering each timepoint of the measurement. z dimension represents time |
masking_scheme |
String. "automask_simple", "automask_novel", "pedar_mask1", "pedar_mask2", "pedar_mask3", "template". "simple_automask" applies a simple 3 part mask (hindfoot, midfoot, forefoot) "automask_novel" attempts to apply a 9-part mask (hindfoot, midfoot, mets, hallux, lesser toes), similar to the standard novel automask "pedar_mask1" splits the insole into 4 regions using sensel boundaries: hindfoot, midfoot, forefoot, and toes- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9470545/ "pedar_mask2" splits the insole into 4 regions using percentages: hindfoot, forefoot, hallux, and lesser toes- https://jfootankleres.biomedcentral.com/articles/10.1186/1757-1146-7-18 "pedar_mask3" splits the foot into 9 regions using sensel boundaries: medial hindfoot, lateral hindfoot, medial midfoot, lateral midfoot, MTPJ1, MTPJ2-3, MTPJ4-5, hallux, and lesser toes- https://jfootankleres.biomedcentral.com/articles/10.1186/1757-1146-7-20 |
foot_side |
String. "RIGHT", "LEFT", or "auto". Auto uses auto_detect_side function |
res_value |
Numeric vector. Adjusting these values can help if the heel, midfoot, toe, and hallux lines aren't correct. Default values are c(10000, 10000, 100000, 10000). These lines are calculated using a least cost function and the parameter essentially adjusts the resistance of the pressure value for that algorithm |
plot |
Logical. Whether to play the animation |
template_mask |
Data frame. Mask to be used if "template_mask" is selected as the masking scheme |
List. Masks are added to pressure data variable
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_novel", res_value = c(20000, 20000, 100000, 20000), foot_side = "auto", plot = FALSE)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_novel", res_value = c(20000, 20000, 100000, 20000), foot_side = "auto", plot = FALSE)
Allows user to manually define mask regions
create_mask_manual( pressure_data, mask_definition = "by_vertices", n_masks = 1, n_verts = 4, n_sens = 4, threshold = 0.005, plot_existing_masks = TRUE, mask_names = "default", plot = TRUE )
create_mask_manual( pressure_data, mask_definition = "by_vertices", n_masks = 1, n_verts = 4, n_sens = 4, threshold = 0.005, plot_existing_masks = TRUE, mask_names = "default", plot = TRUE )
pressure_data |
List. First item is a matrix covering each timepoint of the measurement. |
mask_definition |
String. "by_vertices" or "by_sensors". The first option let's you draw a shape around the area you want to select, the second allows you to define this area by clicking on specific sensors |
n_masks |
Numeric. Number of masks to add |
n_verts |
Numeric. Number of vertices in mask |
n_sens |
Numeric. Number of sensors mask will contain |
threshold |
Numeric. Distance between adjacent mask vertices before sharing vertex coordinates |
plot_existing_masks |
Logical. Show existing masks |
mask_names |
List. Mask names. Default is "custom_mask#" |
plot |
Logical. Show new maks on pressure image |
List. Mask(s) are added to pressure data variable
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix Matrix with maximum image
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_manual(pressure_data, mask_definition = "by_vertices", n_masks = 1, n_verts = 4) pressure_data <- create_mask_manual(pressure_data, mask_definition = "by_sensors", n_masks = 1, n_sens = 8)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_manual(pressure_data, mask_definition = "by_vertices", n_masks = 1, n_verts = 4) pressure_data <- create_mask_manual(pressure_data, mask_definition = "by_sensors", n_masks = 1, n_sens = 8)
Allows user to manually adjust mask vertices
edit_mask( pressure_data, n_edit, threshold = 0.002, edit_list = seq(1, length(pressure_data[[5]])), image = "max" )
edit_mask( pressure_data, n_edit, threshold = 0.002, edit_list = seq(1, length(pressure_data[[5]])), image = "max" )
pressure_data |
List. First item is a 3D array covering each timepoint of the measurement. |
n_edit |
Numeric. Number of vertices to edit |
threshold |
Numeric. Distance between point clicked and vertex that is selected |
edit_list |
List. Mask numbers that want to be edited. (Default is to load all masks so that adjacent masks with shared coordinates are modified together) |
image |
String."max" = footprint of maximum sensors. "mean" average value of sensors over time |
List. Edited mask is added to the pressure data variable
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix Matrix with maximum image
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_novel", foot_side = "auto", plot = FALSE) pressure_data <- edit_mask(pressure_data, n_edit = 1, threshold = 0.002, image = "max")
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_novel", foot_side = "auto", plot = FALSE) pressure_data <- edit_mask(pressure_data, n_edit = 1, threshold = 0.002, image = "max")
Determines footprint of pressure data
footprint(pressure_data, variable = "max", frame = NULL, plot = FALSE)
footprint(pressure_data, variable = "max", frame = NULL, plot = FALSE)
pressure_data |
List. Includes a 3D array covering each timepoint of the measurement. z dimension represents time |
variable |
String. "max" = maximum value of each sensor across full dataset. "mean" = average value of sensors over full dataset."frame" = an individual pressure frame. "meanmax" average max values across cycles ( currently just for pedar) |
frame |
Integer. Only used if variable = "frame". |
plot |
Logical. Display pressure image |
Matrix. Maximum or mean values for all sensors
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) footprint(pressure_data, plot = FALSE)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) footprint(pressure_data, plot = FALSE)
Imports and formats .lst files collected on emed system and exported from Novel software
load_emed(pressure_filepath, trim_active = FALSE)
load_emed(pressure_filepath, trim_active = FALSE)
pressure_filepath |
String. Filepath pointing to emed pressure file |
trim_active |
Logical. Restricts frames to only the first continuous foot contact |
A list with information about the pressure data.
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the areas of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix Matrix with maximum image
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data)
Imports and formats files collected on footscan systems (formerly RSScan)
load_footscan(pressure_filepath)
load_footscan(pressure_filepath)
pressure_filepath |
String. Filepath pointing to emed pressure file |
A list with information about the pressure data.
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
footscan_data <- system.file("extdata", "footscan_test.xls", package = "pressuRe") pressure_data <- load_footscan(footscan_data)
footscan_data <- system.file("extdata", "footscan_test.xls", package = "pressuRe") pressure_data <- load_footscan(footscan_data)
Imports and formats .asc files collected on pedar system and exported from Novel software
load_pedar(pressure_filepath)
load_pedar(pressure_filepath)
pressure_filepath |
String. Filepath pointing to pedar pressure file |
A list with information about the pressure data.
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. String with sensor type
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix Matrix with maximum image
pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe") pressure_data <- load_pedar(pedar_data)
pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe") pressure_data <- load_pedar(pedar_data)
Imports and formats .asc files collected on pliance system and exported from Novel software
load_pliance(pressure_filepath)
load_pliance(pressure_filepath)
pressure_filepath |
String. Filepath pointing to pliance pressure file |
A list with information about the pressure data.
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. String with sensor type
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
pliance_data <- system.file("extdata", "pliance_test.asc", package = "pressuRe") pressure_data <- load_pliance(pliance_data)
pliance_data <- system.file("extdata", "pliance_test.asc", package = "pressuRe") pressure_data <- load_pliance(pliance_data)
Imports and formats files collected on tekscan systems and exported from Tekscan software
load_tekscan(pressure_filepath)
load_tekscan(pressure_filepath)
pressure_filepath |
String. Filepath pointing to emed pressure file |
A list with information about the pressure data.
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
tekscan_data <- system.file("extdata", "fscan_testL.asf", package = "pressuRe") pressure_data <- load_tekscan(tekscan_data)
tekscan_data <- system.file("extdata", "fscan_testL.asf", package = "pressuRe") pressure_data <- load_tekscan(tekscan_data)
Imports and formats files collected on xsensor insole systems
load_xsensor(pressure_filepath)
load_xsensor(pressure_filepath)
pressure_filepath |
String. Filepath pointing to emed pressure file |
A list with information about the pressure data.
pressure_array. 2D array covering each timepoint of the measurement. row dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
xsensor_data <- system.file("extdata", "xsensor_data.csv", package = "pressuRe") pressure_data <- load_xsensor(xsensor_data)
xsensor_data <- system.file("extdata", "xsensor_data.csv", package = "pressuRe") pressure_data <- load_xsensor(xsensor_data)
Analyze masked regions of pressure data
mask_analysis( pressure_data, partial_sensors = FALSE, variable = "press_peak_sensor", pressure_units = "kPa", area_units = "cm2" )
mask_analysis( pressure_data, partial_sensors = FALSE, variable = "press_peak_sensor", pressure_units = "kPa", area_units = "cm2" )
pressure_data |
List. Includes a 3D array covering each timepoint of the measurement. z dimension represents time |
partial_sensors |
Logical Defines how sensors that do not lie wholly within mask are dealt with. If FALSE, they will be excluded; if TRUE, for relevant variables their contribution will be weighted by the proportion of the sensor that falls within the mask border |
variable |
String. Variable to be determined. "press_peak_sensor", "press_peak_mask", "contact_area_peak", "pti_1", "pti_2", "force_time_integral", "force_peak", "dpli", "press_peak_sensor_ts", "force_ts". Variables ending in "_ts" produce time series data |
pressure_units |
String. Default "kPa". Other options: "MPa", "Ncm2" (Newtons per square centimeter) |
area_units |
String. Default is "cm2" (square centimeters). Other options "m2" (square meters); "mm2" (square millimeters) |
Data frame. Contains values for each mask plus additional information relevant to the data including cycle/step and foot side
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_simple", plot = FALSE) mask_analysis(pressure_data, FALSE, variable = "press_peak_sensor")
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- create_mask_auto(pressure_data, "automask_simple", plot = FALSE) mask_analysis(pressure_data, FALSE, variable = "press_peak_sensor")
Sensor sizes for different pedar insoles
pedar_insole_areas
pedar_insole_areas
## 'pedar_insole_areas' A data frame with 198 rows and 8 columns:
areas for size u
areas for size v
areas for size w
areas for size x
areas for size y
areas for size uw
areas for size xw
areas for size vw
Scott Telfer
Sensor outline coordinates
pedar_insole_grid
pedar_insole_grid
## 'pedar_insole_grid' A data frame with 199 rows and 8 columns:
x1 coordinate
y1 coordinate
x2 coordinate
y2 coordinate
x3 coordinate
y3 coordinate
x4 coordinate
y4 coordinate
Scott Telfer
Produces visualization of pressure data
plot_pressure( pressure_data, variable = "max", smooth = FALSE, frame, step_n = "max", plot_COP = FALSE, plot_outline = FALSE, plot_masks = FALSE, plot_colors = "default", break_values, break_colors, sensor_outline = TRUE, plot = TRUE, legend = TRUE )
plot_pressure( pressure_data, variable = "max", smooth = FALSE, frame, step_n = "max", plot_COP = FALSE, plot_outline = FALSE, plot_masks = FALSE, plot_colors = "default", break_values, break_colors, sensor_outline = TRUE, plot = TRUE, legend = TRUE )
pressure_data |
List. Includes a 3D array covering each timepoint of the measurement. z dimension represents time |
variable |
String. "max" = footprint of maximum sensors. "mean" = average value of sensors over time (usually for static analyses). "frame" = an individual frame |
smooth |
Logical. Not implemented. If TRUE, plot will interpolate between sensors to increase data density |
frame |
Integer. |
step_n |
If numeric, the step number to plot (only for insole data). If "max", the max across complete trial, if "meanmax", the max on a per step basis |
plot_COP |
Logical. If TRUE, overlay COP data on plot. Default = FALSE |
plot_outline |
Logical. If TRUE, overlay convex hull outline on plot |
plot_masks |
Logical. If TRUE, overlay mask outline on plot |
plot_colors |
String. "default": novel color scheme; "custom": user supplied |
break_values |
Vector. If plot_colors is "custom", values to split colors at |
break_colors |
Vector. If plot_colors is "custom", colors to use. Should be one shorter than break_values |
sensor_outline |
Logical. Sensor outline to be shown |
plot |
Logical. If TRUE, plot will be displayed |
legend |
Logical. If TRUE, legend will be added to plot |
ggplot plot object
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) plot_pressure(pressure_data, variable = "max", plot_COP = FALSE) plot_pressure(pressure_data, variable = "frame", frame = 20, plot_colors = "custom", break_values = c(100, 200, 300), break_colors = c("light blue", "light green", "yellow", "pink"))
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) plot_pressure(pressure_data, variable = "max", plot_COP = FALSE) plot_pressure(pressure_data, variable = "frame", frame = 20, plot_colors = "custom", break_values = c(100, 200, 300), break_colors = c("light blue", "light green", "yellow", "pink"))
Resamples pressure data over time. Useful for normalizing to stance phase, for example
pressure_interp(pressure_data, interp_to)
pressure_interp(pressure_data, interp_to)
pressure_data |
List. First item should be a 3D array covering each timepoint of the measurement. z dimension represents time. |
interp_to |
Integer. Number of frames to interpolate to |
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. List
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- pressure_interp(pressure_data, interp_to = 101)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) pressure_data <- pressure_interp(pressure_data, interp_to = 101)
Select steps, usually from insole data, and format for analysis
select_steps( pressure_data, threshold = "auto", min_frames = 10, n_steps = 5, skip = 2 )
select_steps( pressure_data, threshold = "auto", min_frames = 10, n_steps = 5, skip = 2 )
pressure_data |
List. First item should be a 3D array covering each timepoint of the measurement. z dimension represents time. |
threshold |
Numeric. Threshold force to define start and end of step. If "auto", function will set threshold at minimum force in trial + 10N |
min_frames |
Numeric. Minimum number of frames that need to be in step |
n_steps |
Numeric. Target number of steps/cycles. User will be asked to keep selected steps until this target is reached or they run out of candidate steps |
skip |
Numeric. Usually the first few steps of a trial are accelerating and not representative of steady state walking so this removes them |
pressure_array. 3D array covering each timepoint of the measurement. z dimension represents time
pressure_system. String defining pressure system
sens_size. Numeric vector with the dimensions of the sensors
time. Numeric value for time between measurements
masks. List
events. Data frame
sensor_polygons. Data frame with corners of sensors
max_matrix. Matrix
pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe") pressure_data <- load_pedar(pedar_data) pressure_data <- select_steps(pressure_data)
pedar_data <- system.file("extdata", "pedar_example.asc", package = "pressuRe") pressure_data <- load_pedar(pedar_data) pressure_data <- select_steps(pressure_data)
Generates vectors with option to plot for force, peak/mean pressure and area for complete measurement. Useful for checking data
whole_pressure_curve( pressure_data, variable, side, threshold = 10, plot = FALSE )
whole_pressure_curve( pressure_data, variable, side, threshold = 10, plot = FALSE )
pressure_data |
List. A 3D array covering each timepoint of the measurement. z dimension represents time |
variable |
String. "peak_pressure", "force", or "area" |
side |
For insole data only |
threshold |
Numeric. Threshold value for sensor to be considered active. Currently only applies to insole data |
plot |
Logical. If TRUE also plots data as line curve |
Numeric vector containing variable values
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) whole_pressure_curve(pressure_data, variable = "peak_pressure", plot = FALSE) whole_pressure_curve(pressure_data, variable = "area", plot = FALSE) whole_pressure_curve(pressure_data, variable = "force", plot = FALSE)
emed_data <- system.file("extdata", "emed_test.lst", package = "pressuRe") pressure_data <- load_emed(emed_data) whole_pressure_curve(pressure_data, variable = "peak_pressure", plot = FALSE) whole_pressure_curve(pressure_data, variable = "area", plot = FALSE) whole_pressure_curve(pressure_data, variable = "force", plot = FALSE)