ggswissparl | R Documentation |
ggswissparl
plots voting results of the Swiss National Council according to the latest seating order.
ggswissparl( votes, seats = NULL, highlight, result = F, result_size = 6, point_shape = 16, point_size = 4, theme = "scoreboard" )
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:
|
A ggplot object. If votes
contains multiple ballots, [ggplot2]{facet_wrap}
is used to
create facets.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.