plot_gaze_heatmap | R Documentation |
Creates a heatmap showing the distribution of eye_x and eye_y coordinates across the entire screen area. The heatmap shows where the participant looked most frequently during the recording period.
plot_gaze_heatmap(
eyeris,
block = 1,
screen_width = NULL,
screen_height = NULL,
n_bins = 50,
col_palette = "viridis",
main = "Gaze Heatmap",
xlab = "Screen X (pixels)",
ylab = "Screen Y (pixels)",
sample_rate = NULL
)
eyeris |
An object of class |
block |
Block number to plot (default: 1) |
screen_width |
Screen width in pixels from eyeris$info$screen.x |
screen_height |
Screen height in pixels from eyeris$info$screen.y |
n_bins |
Number of bins for the heatmap grid (default: 50) |
col_palette |
Color palette for the heatmap (default: "viridis") |
main |
Title for the plot (default: "Fixation Heatmap") |
xlab |
X-axis label (default: "Screen X (pixels)") |
ylab |
Y-axis label (default: "Screen Y (pixels)") |
sample_rate |
Sample rate in Hz (optional) |
No return value; creates a heatmap plot
demo_data <- eyelink_asc_demo_dataset()
eyeris_preproc <- glassbox(demo_data)
plot_gaze_heatmap(eyeris = eyeris_preproc, block = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.