Description Usage Arguments Value See Also
View source: R/plot_functions.R
Plot activity (number of calls) of each night of a given period.
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
)
|
plotData |
data generated by |
start_date |
in POSIXct format or |
end_date |
in POSIXct format or |
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
|
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 |
text_size |
base text size |
force_dst_corr |
if TRUE daylight saving time is forcefully corrected. |
a ggplot
object
Other plot functions:
nightPlot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.