periodPlot: Period Plot

Description Usage Arguments Value See Also

View source: R/plot_functions.R

Description

Plot activity (number of calls) of each night of a given period.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
periodPlot(
  plotData,
  start_date = floor_date(min(plotData$survey_date), "year"),
  end_date = ceiling_date(max(plotData$survey_date), "year"),
  sel_species = "every",
  x_limits = NULL,
  y_limits = NULL,
  x_break_distance = "1 month",
  y_break_distance = "1 hour",
  x_break_label = "%b",
  text_size = 16
)

Arguments

plotData

data generated by sumBatscopeData

start_date

in POSIXct format or "YYYY-MM-DD", defaults to the beginning of the year in which the first data were aquired.

end_date

in POSIXct format or "YYYY-MM-DD", defaults to the end of the year in which the last data were aquired.

sel_species

species_name or vector of species to plot, use "every" to plot all species individually (differentiated by color)

x_limits

x-axis limits, NULL (default) or a POSIXct vector of length 2

y_limits

y-axis limits, NULL (default) or a character or POSIXct vector of length 2 with format c("1900-01-01 HH:MM","1900-01-02 HH:MM")

x_break_distance

A string giving the distance between x breaks like "2 weeks", or "10 years".

y_break_distance

A string giving the distance between ybreaks like "2 weeks", or "10 years".

x_break_label

Time format for labels, see strptime.

text_size

base text size

force_dst_corr

if TRUE daylight saving time is forcefully corrected.

Value

a ggplot object

See Also

Other plot functions: nightPlot()


dcangst/batplotr documentation built on April 22, 2021, 2:27 a.m.