Exercise: Loops and if/else

  1. Download the data set “Hessia_votes.csv”.
  2. Create -for each party!- a barplot comparing the percentage of votes of 2021 and 2025.
  3. Add the text “looser” or “winner” to the plot if the party hast lost/won votes
  4. Extra, voluntary task: only display looser/winner if the difference is larger than 5% decrease/increase. If it is below 5% decrease/increase, add the text “stable”

Updated: