SpectrogramFunction: A function to calculate spectrograms over a set of focal...

Description Usage Arguments Value Examples

View source: R/SpectrogramFunction.R

Description

A function to calculate spectrograms over a set of focal recordings

Usage

1
2
3
4
5
6
7
SpectrogramFunction(
  input.dir,
  min.freq = 500,
  max.freq = 2500,
  Colors = "BW",
  downsample.new = 16000
)

Arguments

input.dir

The location of the .wav files

min.freq

The minimum frequency (Hz) of the signal of interest

max.freq

The maximum frequency (Hz) of the signal of interest

Colors

Whether to return a black and white or color spectrogram

downsample.new

<- If downsampling is desired, which frequency (Hz) to use for downsampling

Value

multiple spectrogram images

Examples

1
2
SpectrogramFunction(input.dir = "FocalRecordings",
min.freq = 500,max.freq=2500)

DenaJGibbon/behaviouR documentation built on Aug. 27, 2020, 10:57 p.m.