cat_plot: Plot with increasing credible range error bars decreasing in...

View source: R/cat_plot.R

cat_plotR Documentation

Plot with increasing credible range error bars decreasing in size around credible intervals

Description

Option to include original data. Currently needs columns q01, q05, q25, q50, q75, q95 and q99 in df.

Usage

cat_plot(
  df,
  orig_data = NULL,
  y = "prop",
  x = "year",
  facet_col = "LSA",
  y_name = "reporting rate",
  likelihood_col = "pos_raw"
)

Arguments

df

Dataframe with y, y_prop etc

orig_data

Dataframe with original data

x, y

Chracter name of columns in df and orig_data with response variable

facet_col

Character name of column in df with a column to facet on.

y_name

Character. Name to give to y in plot

likelihood_col

Character name of column in df with likelihoods

Value

ggplot


Acanthiza/envTrend documentation built on Nov. 16, 2023, 4:24 p.m.