plotTimeseries {PAMscapes} | R Documentation |
Plot Timeseries
Description
Plot simple timeseries of values
Usage
plotTimeseries(
x,
bin = "1hour",
column,
title = NULL,
units = NULL,
style = c("line", "heatmap"),
q = 0,
by = NULL,
cmap = viridis_pal()(25),
toTz = "UTC"
)
Arguments
x |
a dataframe with column |
bin |
time bin for summarising data. The median of values within the same time bin will be plotted |
column |
the name of the column to plot |
title |
title for the plot, if left as default |
units |
name of units for plot labeling, default is taken from common soundscape units |
style |
one of |
q |
only valid for |
by |
only valid for |
cmap |
only valid for |
toTz |
timezone to use for the time axis (input data must be UTC). Specification must be from OlsonNames |
Value
a ggplot object
Author(s)
Taiki Sakai taiki.sakai@noaa.gov
Examples
manta <- checkSoundscapeInput(system.file('extdata/MANTAExampleSmall2.csv', package='PAMscapes'))
plotTimeseries(manta, bin='1minute', column='HMD_150')