plotz.mrp: Plots MrP Predictions

Description Usage Arguments Details Author(s) Examples

View source: R/plotz.mrp.R

Description

This function plots the results of mrp.zurich. User can request that uncertainty is displayed.

Usage

1
plotz.mrp(x, conf.int = 0.95, col = "darkorchid3", design.dot = TRUE, lab, ...)

Arguments

x

Object returned from mrp.zurich(). Can be a vector or a matrix.

conf.int

Confidence interval that should be displayed. Only meaningful if x is a matrix 26*Number.sim.

col

Change color (default is darkorchid).

design.dot

Logical. If design.dot=TRUE the plot will display dots. If design.dot=FALSE the plot will display the cantonal abbreviations (ZH, BE, LU, ...).

lab

Label for x-axis. If there is no user specified label the default is "Degree of Estimated Support".

...

Further graphical arguments can be used, e.g. main to specify a title.

Details

The design, when design.dot=FALSE, was added for Fabio Wasserfallen.

Author(s)

Lucas Leemann

Examples

1
2
3
4
# fake data example
vec <- pnorm(rnorm(26))
plotz.mrp(vec, design.dot=FALSE,
		  main="Distribution will be Uniform", lab="Heterogeneous Preferences")

MrPzurich2013 documentation built on May 2, 2019, 4:42 p.m.