plot.swissMrP: Plots 'swissMrP' Objects

View source: R/plot.swissMrP.R

plotR Documentation

Plots swissMrP Objects

Description

This function plots the results of swissMrP.

Usage

## S3 method for class 'swissMrP'
plot(x, conf.int = 0.95, col, design.dot = TRUE, lab, ...)

Arguments

x

Object returned from swissMrP().

conf.int

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

col

Color for plot.

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, lleemann@gmail.com

See Also

swissMrP, map.MrP

Examples


# fake data example
vec <- pnorm(rnorm(26))
class(vec) <- "swissMrP"
plot(vec, design.dot=FALSE, main="Simulated Data", 
             lab="Heterogeneous Preferences", col="green")

plot(vec, design.dot=TRUE, main="Simulated Data", 
             lab="Heterogeneous Preferences", col="blue")


lleemann/swissMrP documentation built on April 25, 2023, 6:12 a.m.