plotFrame {scalpel} | R Documentation |
Plot a frame of the video.
Description
We plot a specified frame of the raw video that we began with in Step 0 of SCALPEL, or the processed video that results from Step 0 of SCALPEL.
Usage
plotFrame(
scalpelOutput,
frame,
videoType = "processed",
shrinkLargest = FALSE,
shrinkCutoff = NULL,
title = NULL,
col = grDevices::grey(seq(0, 1, length = 256)),
addToPlot = FALSE,
Y = NULL
)
Arguments
scalpelOutput |
An object returned by one of the SCALPEL functions:
|
frame |
The frame to plot. |
videoType |
Specify whether to plot the processed data from Step 0 (default; |
shrinkLargest |
Logical value indicating whether the values above |
shrinkCutoff |
The value above which pixel values will be shrunk. By default, this will be chosen as
|
title |
Label for the title. By default, it is the frame number. |
col |
Vector of colors to use, which by default is grayscale. |
addToPlot |
Logical value indicating whether to add to the current plot. |
Y |
An object of class |
Value
None
See Also
Examples
## Not run:
### many of the functions in this package are interconnected so the
### easiest way to learn to use the package is by working through the vignette,
### which is available at ajpete.com/software
#assumes you have run the example for the "scalpel" function
#simplest example with default parameters:
plotFrame(scalpelOutput = scalpelOutput, frame = 100)
#example with optional parameters:
#plot raw data instead of processed
plotFrame(scalpelOutput = scalpelOutput, frame = 100, videoType = "raw")
#same plot but if you have video data read in already
#using 'getY' function, you can provide it
rawY = getY(scalpelOutput = scalpelOutput, videoType = "raw")
plotFrame(scalpelOutput = scalpelOutput, frame = 100, Y = rawY)
## End(Not run)