ggswissparl {swissparl} | R Documentation |
Plot voting results
Description
ggswissparl
plots voting results of the Swiss National Council according to the latest seating order.
Usage
ggswissparl(
votes,
seats = NULL,
highlight,
result = F,
result_size = 6,
point_shape = 16,
point_size = 4,
theme = "scoreboard"
)
Arguments
votes |
data of votes of the Swiss National Council as can be retrieved with |
seats |
data linking councillors ( |
highlight |
named list with variable and values to specify highlighting of selected councillors. |
result |
if |
result_size |
font size of result. |
point_shape |
shape of point as defined in |
point_size |
size of point. |
theme |
name of predefined plot theme:
|
Value
A ggplot object. If votes
contains multiple ballots, [ggplot2]{facet_wrap}
is used to
create facets.
Examples
## Not run:
# Visualization of a vote of the 51st legislature
get_data("Voting", Language = "DE", IdVote = 23458) %>%
ggswissparl()
# Highlighting a parliamentary group
get_data("Voting", Language = "DE", IdVote = 23458) %>%
ggswissparl(highlight = list("ParlGroupNumber" = 2))
## End(Not run)