




prcalc object.Visualization of a prcalc object.
## S3 method for class 'prcalc'
plot(
x,
type = "both",
prop = TRUE,
show_total = TRUE,
by = c("l1", "l2"),
subset_l1 = NULL,
subset_l2 = NULL,
free_y = FALSE,
font_size = 12,
angle = 0,
facet_col = 4,
legend_pos = "bottom",
...
)
x
|
a prcalc object.
|
type
|
a plot of votes (“raw”), allocation (“dist”), or both (“both”). Default is “both”.
|
prop
|
Output at a percentage. If type is “both”, it is ignored. Default is TRUE.
|
show_total
|
If TRUE, a facet names "Total" is diplayed. Default is TRUE.
|
by
|
Facets by level 1 (“l1”) or level 2 (“l2”). Default is “l1”.
|
subset_l1
|
a character vector. a subset of level 1. |
subset_l2
|
a character vector. a subset of level 2. |
free_y
|
If FALSE, y-axes are fixed over all facets. Default is TRUE.
|
font_size
|
a font size. |
angle
|
an angle of x-ticks label (0 to 90). Defualt is 0.
|
facet_col
|
a number of columns of facets. |
legend_pos
|
a position of legend. Default is “bottom”
|
…
|
Ignored |
A ggplot object.




