autoplot: Plot prediction results

autoplotR Documentation

Plot prediction results

Description

Plot the estimated mean and standard error for each reporting unit.

Usage

## S3 method for class 'sandwich.model'
autoplot(
  object,
  titles = c("Mean", "Standard Error"),
  labels = c("", ""),
  border_color = "darkgray",
  poly_fill_mean = c("white", "red"),
  poly_fill_se = c("white", "blue"),
  ...
)

Arguments

object

A sandwich.model object generated by sandwich.model.

titles

A list of texts for the titles.

labels

A list of texts for the legend labels.

border_color

Color for outlines of the polygons.

poly_fill_mean

A list of colors for low and high ends of the gradient in the mapping of means.

poly_fill_se

A list of colors for low and high ends of the gradient in the mapping of standard errors.

...

Ignored.

Value

A list of ggplot objects.

References

Wang, J. F., Haining, R., Liu, T. J., Li, L. F., & Jiang, C. S. (2013). Sandwich estimation for multi-unit reporting on a stratified heterogeneous surface. Environment and Planning A, 45(10), 2515-2534.

See Also

sandwich.model

Examples

library(ggplot2)
data(sim.data)
sim.sw <- sandwich.model(object=sim.data, sampling.attr="Value", type="shp")
ggplot2::autoplot(object=sim.sw)



sandwichr documentation built on April 27, 2023, 1:10 a.m.