An R package to analyze the parliamentary records of the 19th legislative period of the Bundestag, the German parliament.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

56 行
1.5KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/analyze.R
  3. \name{bar_plot_fractions}
  4. \alias{bar_plot_fractions}
  5. \title{Bar chart visualizing fraction based data}
  6. \usage{
  7. bar_plot_fractions(
  8. tb,
  9. x_variable = NULL,
  10. y_variable = NULL,
  11. fill = NULL,
  12. title = NULL,
  13. xlab = "Fraction",
  14. ylab = "n",
  15. filllab = "Fraction",
  16. flipped = TRUE,
  17. position = "dodge",
  18. reorder = FALSE,
  19. rotatelab = FALSE
  20. )
  21. }
  22. \arguments{
  23. \item{tb}{tibble}
  24. \item{x_variable}{column in tb, default is fraction}
  25. \item{y_variable}{column in tb, default is n}
  26. \item{fill}{column in tb, default is fraction}
  27. \item{title}{plot title}
  28. \item{xlab}{label for x axis, default is fraction}
  29. \item{ylab}{label for y axis, default is n}
  30. \item{filllab}{default is 'Fraction'}
  31. \item{flipped}{if TRUE draw bars horizontally, else vertically. Default is TRUE}
  32. \item{position}{default is 'dodge'}
  33. \item{reorder}{Either reorder fraction factor by variable value or reorder fraction factor by party seat order in parliament (default).}
  34. \item{rotatelab}{Default is FALSE. If true turns the labels 90 degrees to the axis.
  35. plot data from tb in the following way: for each item in x_variable show the corresponding value in y_variable.
  36. Then color the plot depending on the fill value.
  37. Give the plot a title and a label for x-axis and y-axis,
  38. color the legend according to filllab and finally
  39. improve positioning details according to position}
  40. }
  41. \description{
  42. Can be configured to also visualize data not related to fractions.
  43. }