plot_frontal: Plot a heatmap of points extracted from OpenPose data using...

View source: R/plot_frontal.R

plot_frontalR Documentation

Plot a heatmap of points extracted from OpenPose data using create_csv().

Description

Creates a simple heatmap (using ggplot2) of points in a body-pose model (x,y).

Usage

plot_frontal(plotData, width = 720, height = 576, backgroundImage = NULL, quadrantLabels = TRUE, quadrantLabelSize = 12, binSize = 125)

Arguments

plotData

Data frame containing x and y coordinates of tracked points in OpenPoseR format, that is as generated from OpenPose data by create_csv().

width

Width of video from which data will be plotted. Defaults to 720 pixels.

height

height of video from which data will be plotted. Defaults to 576 pixels.

backgroundImage

Pass an alternative packground image to the function, if the default one is not suitable for your purpose. (Read images using magick::image_read() function.)

quadrantLabels

Display quadrant labels. Defaults to TRUE.

quadrantLabelSize

Change size of quadrant labels. Default is 12.

binSize

Determine size of bins in plot. Default is 125.

Examples

plot_frontal(data)

trettenbrein/OpenPoseR documentation built on April 22, 2022, 4:03 a.m.