View source: R/plotHourlyLevel.R
plotHourlyLevel | R Documentation |
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
)
x |
a dataframe with columns |
title |
title for the plot. If |
units |
name of units for plot labeling, default is taken from common soundscape units |
scale |
one of |
freqMin |
minimum frequency for the plot range, if desired to be different than the minimum frequency of the data |
dbRange |
range of dB values to plot |
toTz |
timezone to use for the time axis (input data must be UTC). Specification must be from OlsonNames |
cmap |
color palette map to use for plot, default is viridis_pal |
returnData |
if |
a ggplot object
Taiki Sakai taiki.sakai@noaa.gov
plotHourlyLevel(system.file('extdata/OLSmall.csv', package='PAMscapes'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.