Plots a heatmap of summarised sound levels. Y-axis is hour
of the day, X-axis is frequency bin. Plotted values are the median of
the value
column for each hour/frequency pairing across the dataset.
This function is designed to work with sound level outputs with consistent
frequency bins measured across time
plotHourlyLevel(
x,
title = NULL,
units = NULL,
scale = c("log", "linear"),
freqMin = NULL,
dbRange = NULL,
toTz = "UTC",
cmap = viridis_pal()(25),
returnData = FALSE
)
a ggplot object
a dataframe with columns UTC
, frequency
, and
value
title for the plot. If NULL
(default) it will use the
first value in the type
column of x
(if present)
name of units for plot labeling, default is taken from common soundscape units
one of 'log'
or 'linear'
for the scale of
the frequency axis
minimum frequency for the plot range, if desired to be different than the minimum frequency of the data
range of dB values to plot
timezone to use for the time axis (input data must be UTC). Specification must be from OlsonNames
color palette map to use for plot, default is viridis_pal
if TRUE
then no plot will be generated, instead the
dataframe that would normally be used to make the plot will be returned
Taiki Sakai taiki.sakai@noaa.gov
plotHourlyLevel(system.file('extdata/OLSmall.csv', package='PAMscapes'))
Run the code above in your browser using DataLab