plot_series {popbayes} | R Documentation |
Plot original vs converted counts
Description
This function plots a panel of two graphics for one count series
(previously generated by format_data()
):
on the left side, scatter plot overlapping original (black points) and converted counts (grey points);
on the right side, scatter plot of converted counts with boundaries of the 95% confident interval.
Usage
plot_series(series, title = TRUE, path = ".", path_fig = ".", save = FALSE)
Arguments
series |
a |
title |
a |
path |
a |
path_fig |
a |
save |
a |
Value
No return value.
Examples
## Load Garamba raw dataset ----
file_path <- system.file("extdata", "garamba_survey.csv",
package = "popbayes")
garamba <- read.csv(file = file_path)
## Create temporary folder ----
temp_path <- tempdir()
## Format dataset ----
garamba_formatted <- popbayes::format_data(
data = garamba,
path = temp_path,
field_method = "field_method",
pref_field_method = "pref_field_method",
conversion_A2G = "conversion_A2G",
rmax = "rmax")
## Get series names ----
popbayes::list_series(path = temp_path)
## Plot for Alcelaphus buselaphus at Garamba ----
popbayes::plot_series("garamba__alcelaphus_buselaphus", path = temp_path)