plot.barp: plot.barp

View source: R/plot.barp.R

plot.barpR Documentation

plot.barp

Description

This function plots the predictions by geographic unit geo.unit.

Usage

## S3 method for class 'barp'
plot(barp.obj, evaluate_model = F, algorithm = "all")

Arguments

barp.obj

A barp object.

evaluate_model

Plot model convergence diagnostics? If left to the default FALSE, return a plot of predictions and credible intervals.

algorithm

Select which algorithm's predictions should be plotted. If left to the default "all", plot all predictions without credible intervals.

See Also

barp which creates the prerequisite barp object.

Examples

data("gaymar")
barp.obj <- barp(y = "supp_gaymar",
             x = c("pvote","religcon","age","educ","gXr","stateid","region"),
             dat = svy,
             census = census06,
             geo.unit = "stateid",
             proportion = "n")
plot(barp.obj,
     evaluate_model = F,
     algorithm = "BARP")

jbisbee1/BARP documentation built on Jan. 5, 2023, 9:15 a.m.