Learn R Programming

SafeVote (version 1.0.1)

image.SafeVote.condorcet: The image function visualizes the joint distribution of two preferences (if 'all.pref=FALSE') given 'xpref' and 'ypref', as well as the marginal distribution of all preferences (if 'all.pref=TRUE'). The joint distribution can be shown as proportions (if 'proportion=TRUE') or raw vote counts (if 'proportion=FALSE').

Description

The image function visualizes the joint distribution of two preferences (if 'all.pref=FALSE') given 'xpref' and 'ypref', as well as the marginal distribution of all preferences (if 'all.pref=TRUE'). The joint distribution can be shown as proportions (if 'proportion=TRUE') or raw vote counts (if 'proportion=FALSE').

Usage

# S3 method for SafeVote.condorcet
image(x, ...)

Value

image object, with side-effect in RStudio Plots pane

Arguments

x

object of type SafeVote.condorcet

...

See arguments for image.SafeVote.stv, especially 'xpref', 'ypref', 'all.pref' and 'proportion'.