plotGram | R Documentation |
Plots either a spectrogram or cepstrogram and also overlays whistle or cepstral contours from the binary files
plotGram(
x,
evNum = 1,
start = NULL,
end = NULL,
channel = 1,
wl = 512,
hop = 0.25,
mode = c("spec", "ceps"),
detections = c("cepstrum", "click", "whistle"),
detCol = c("red", "blue", "blue"),
sr = NULL
)
x |
an AcousticStudy object |
evNum |
if |
start |
start time of the plot, either POSIXct or seconds from the start of the event |
end |
end time of the plot, either POSIXct or seconds from the start of the event. |
channel |
channel to plot |
wl |
window length of FFT to use for creating plot |
hop |
hop value of FFT to use for creating plot, either as a percentage
of |
mode |
one of |
detections |
vector containing any of |
detCol |
vector containing colors to use for plotting detections. Order matches order of detections (default alphabetical - cepstrum, click, whistle) |
sr |
sample rate |
nothing, just plots
Taiki Sakai taiki.sakai@noaa.gov
data(exStudy)
recs <- system.file('extdata', 'Recordings', package='PAMpal')
exStudy <- updateFiles(exStudy,
bin=system.file('extdata', 'Binaries', package='PAMpal'),
db = system.file('extdata', 'Example.sqlite3', package='PAMpal'))
exStudy <- addRecordings(exStudy, folder=recs, log=FALSE, progress=FALSE)
# No detections will appear on plot because included recordings are heavily decimated
plotGram(exStudy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.