Learn R Programming

pref (version 0.4.0)

stv.plots: Makes webpage plots of result of an STV election

Description

Makes webpage plots of result of an STV election

Usage

stv.plots(elecdata, outdirec = tempdir(), webdisplay = FALSE, map = FALSE)

Value

Webpages with plots of election count and results

Arguments

elecdata

An R list of results from stv or stv.wig

outdirec

A directory for web page output

webdisplay

If TRUE displays the main output web page

map

A possible extra showing map of election location

Examples

Run this code
c99result=stv(c99)
c99plots=stv.plots(c99result)
nws17wig=stv.wig(nws17)
nws17plots=stv.plots(nws17wig)

Run the code above in your browser using DataLab