An R package to analyze the parliamentary records of the 19th legislative period of the Bundestag, the German parliament.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

55 linhas
1.2KB

  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{plot data depending on fractions in a standardized, configurable way}
  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. )
  20. }
  21. \arguments{
  22. \item{tb}{tibble}
  23. \item{x_variable}{column in tb}
  24. \item{y_variable}{column in tb}
  25. \item{fill}{column in tb}
  26. \item{title}{char}
  27. \item{xlab}{char}
  28. \item{ylab}{char}
  29. \item{filllab}{char}
  30. \item{flipped}{bool}
  31. \item{position}{char}
  32. \item{reorder}{bool
  33. plot data from tb in the following way: for each item in x_variable show the corresponding value in y_variable.
  34. Then color the plot depending on the fill value
  35. Give the plot a title, an x-label xlab as well as an y-label ylab
  36. Color the legend according to filllab
  37. Setting flipped to TRUE makes the bars horizontal
  38. Improve positioning details according to position
  39. and finally reorder x_variable (default ist to order fractions according to seat order)}
  40. }
  41. \description{
  42. plot data depending on fractions in a standardized, configurable way
  43. }