
Last chance! 50% off unlimited learning
Sale ends in
plot_events
plots each event in a group as a multi-panel plot and
saves it into specified directory.
plot_events(data = data, Column = NULL, Grouping = "Subject",
Nrow = 1, Ncol = 1, Device = "pdf", ...)
A data table object output by
ppl_select_recorded_eye
.
A character string indicating the column to plot.
A character string indicating the column to serve as the grouping. For example, "Subject" will use the subject identifier, producing one image per subject containing all the events for that subject.
= A number specifying how many rows per page.
= A number specifying how many columns per page.
A character string indicating device type passed to
ggsave
. By default, this is set to "pdf".
Arguments to be passed to ggsave
.
Files containing plots.
# NOT RUN {
# Load example data
data("Pupilex3")
# Writing files to temporary folder for the example
plot_events(Pupilex3, Column = "Pupil", Device = "pdf",
Grouping = "Subject", path = paste0(tempdir(),"/Figs"),
Nrow = 1, Ncol = 1, width = 11, height = 8.5)
# Please see the vignettes for detailed example usage.
# vignette("PupilPre_Plotting", package="PupilPre")
# }
Run the code above in your browser using DataLab