View source: R/ggboxplot_DepthTS_by_hour.r
ggboxplot_DepthTS_by_hour | R Documentation |
This function creates a boxplot via the ggplot library from hourly aggregated DepthTS records
ggboxplot_DepthTS_by_hour(ts_df, ylim, min_perc=75,
main="", submain, add_ids_to_submain=FALSE, xlab,
ID, ID_label="Serial",
plot_DayTimePeriods=TRUE, twilight.set="ast",
box=TRUE, jitter=FALSE,
color_by=ID_label, cb.title=color_by,
pal, opacity=0.1,tz="UTC")
ts_df |
|
ylim |
limits of the y-axis. |
min_perc |
the minimum data coverage (in percent) of daily DepthTS recoords (by default 75%). |
main, submain, add_ids_to_submain, xlab |
The title and subtitle of the figure as well as the label of the x-axis. |
ID, ID_label |
Tag ID and its label (column name; by default "Serial") to be selected (e.g. if input data frame holds tagging data from several tags). |
plot_DayTimePeriods, twilight.set |
whether day-time periods ('Night', 'Dawn', 'Day', 'Dusk') should be plotted as shaded areas. In case that |
box |
whether to draw a box around the figure (by default |
jitter, color_by, cb.title, pal, opacity |
whether to draw all Depth records on top of the boxplot (by default |
tz |
The time zone in which the data should be illustrated (By default "UTC"). ATTENTION: The required date format of the input data is "UTC" (across all RchivalTag-functions). Run |
Robert K. Bauer
hist_tad, plot_DepthTS, dy_DepthTS
# ts_file <- system.file("example_files/104659-Series.csv",package="RchivalTag")
# ts_df <- read_TS(ts_file)
# ggboxplot_DepthTS_by_hour(ts_df)
#
# ## Let's add position data to obtain twilight and nighttime shadings:
#
# ts_df$Lon <- 5; ts_df$Lat <- 43
# ts_df2 <- get_DayTimeLimits(ts_df)
# ggboxplot_DepthTS_by_hour(ts_df2,ylim=c(0,100))
#
# ### Let's add the actual depth records on top of the boxplot
# ###(only meaningful in case of few amounts of data):
#
# ggboxplot_DepthTS_by_hour(ts_df2,jitter = T,opacity = 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.