View source: R/visualization.R
plot.eye_density | R Documentation |
This function creates a plot of the eye density using ggplot2.
## S3 method for class 'eye_density'
plot(
x,
alpha = 0.8,
bg_image = NULL,
transform = c("identity", "sqroot", "curoot", "rank"),
...
)
x |
An "eye_density" object. |
alpha |
The opacity level for the raster layer (default: 0.8). |
bg_image |
An optional image file name to use as the background. |
transform |
The transformation to apply to the density values (default: c("identity", "sqroot", "curoot", "rank")). |
... |
Additional args |
A ggplot object representing the eye density plot.
Other visualization:
anim_scanpath()
,
plot.fixation_group()
# Assume `ed` is an "eye_density" object
# Plot the eye density
plot_eye_density <- plot.eye_density(ed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.