add rotatelab to bar_plot_fractions

This commit is contained in:
Leon Burgard
2021-08-09 11:00:14 +02:00
parent 1db9e3f59a
commit 545e5c9bab
4 changed files with 36 additions and 9 deletions
+5 -2
View File
@@ -15,7 +15,8 @@ bar_plot_fractions(
filllab = "Fraction",
flipped = TRUE,
position = "dodge",
reorder = FALSE
reorder = FALSE,
rotatelab = FALSE
)
}
\arguments{
@@ -39,7 +40,9 @@ bar_plot_fractions(
\item{position}{default is 'dodge'}
\item{reorder}{Either reorder fraction factor by variable value or reorder fraction factor by party seat order in parliament (default).
\item{reorder}{Either reorder fraction factor by variable value or reorder fraction factor by party seat order in parliament (default).}
\item{rotatelab}{Default is FALSE. If true turns the labels 90 degrees to the axis.
plot data from tb in the following way: for each item in x_variable show the corresponding value in y_variable.
Then color the plot depending on the fill value.