Merge branch 'master' of https://git.flavigny.de/christian/hateimparlament
This commit is contained in:
+16
-18
@@ -2,7 +2,7 @@
|
||||
% Please edit documentation in R/analyze.R
|
||||
\name{bar_plot_fractions}
|
||||
\alias{bar_plot_fractions}
|
||||
\title{plot data depending on fractions in a standardized, configurable way}
|
||||
\title{Bar chart visualizing fraction based data}
|
||||
\usage{
|
||||
bar_plot_fractions(
|
||||
tb,
|
||||
@@ -21,34 +21,32 @@ bar_plot_fractions(
|
||||
\arguments{
|
||||
\item{tb}{tibble}
|
||||
|
||||
\item{x_variable}{column in tb}
|
||||
\item{x_variable}{column in tb, default is fraction}
|
||||
|
||||
\item{y_variable}{column in tb}
|
||||
\item{y_variable}{column in tb, default is n}
|
||||
|
||||
\item{fill}{column in tb}
|
||||
\item{fill}{column in tb, default is fraction}
|
||||
|
||||
\item{title}{char}
|
||||
\item{title}{plot title}
|
||||
|
||||
\item{xlab}{char}
|
||||
\item{xlab}{label for x axis, default is fraction}
|
||||
|
||||
\item{ylab}{char}
|
||||
\item{ylab}{label for y axis, default is n}
|
||||
|
||||
\item{filllab}{char}
|
||||
\item{filllab}{default is 'Fraction'}
|
||||
|
||||
\item{flipped}{bool}
|
||||
\item{flipped}{if TRUE draw bars horizontally, else vertically. Default is TRUE}
|
||||
|
||||
\item{position}{char}
|
||||
\item{position}{default is 'dodge'}
|
||||
|
||||
\item{reorder}{bool
|
||||
\item{reorder}{Either reorder fraction factor by variable value or reorder fraction factor by party seat order in parliament (default).
|
||||
|
||||
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
|
||||
Give the plot a title, an x-label xlab as well as an y-label ylab
|
||||
Color the legend according to filllab
|
||||
Setting flipped to TRUE makes the bars horizontal
|
||||
Improve positioning details according to position
|
||||
and finally reorder x_variable (default ist to order fractions according to seat order)}
|
||||
Then color the plot depending on the fill value.
|
||||
Give the plot a title and a label for x-axis and y-axis,
|
||||
color the legend according to filllab and finally
|
||||
improve positioning details according to position}
|
||||
}
|
||||
\description{
|
||||
plot data depending on fractions in a standardized, configurable way
|
||||
Can be configured to also visualize data not related to fractions.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user