Skip to content

Commit

Permalink
improve plot labeling and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroelfs committed Nov 23, 2023
1 parent 76dbd4c commit fd9239e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 8 additions & 4 deletions content/blog/2023-dutch-elections/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ polls_peilingwijzer <- tribble(
polls_peilingwijzer |>
inner_join(data_parties) |>
inner_join(data_polls_pre_new |>
select(party, current_seats)) |>
select(party, current_seats)) |>
mutate(
color = ifelse(color == "grey92", "grey", color),
range_max_label = ifelse(range_max <= 2,
Expand Down Expand Up @@ -852,7 +852,9 @@ summary_municipality <- results_municipality |>
) +
labs(
title = "Political identity",
subtitle = "Is the municipalitiy more<br><span style='color: #B24334'>progressive</span> or <span style='color: #4180B4'>conservative</span>?",
subtitle = "Is the municipalitiy more<br>
<span style='color: #B24334'>**progressive**</span> or
<span style='color: #4180B4'>**conservative**</span>?",
fill = NULL
) +
scico::scale_fill_scico(
Expand All @@ -868,7 +870,9 @@ summary_municipality <- results_municipality |>
) +
labs(
title = "Political color",
subtitle = "Is the municipalitiy more<br><span style='color: #B24334'>left</span> or <span style='color: #4180B4'>right</span> leaning?",
subtitle = "Is the municipalitiy more<br>
<span style='color: #B24334'>**left**</span> or
<span style='color: #4180B4'>**right**</span> leaning?",
fill = NULL
) +
scico::scale_fill_scico(
Expand All @@ -888,7 +892,7 @@ summary_municipality <- results_municipality |>
plot.title.position = "plot",
plot.title = element_markdown(size = 16, face = "bold"),
plot.subtitle = element_markdown(),
plot.caption = element_markdown(lineheight = 0.75),
plot.caption = element_markdown(lineheight = 1),
plot.caption.position = "plot",
legend.text = element_blank(),
legend.position = "bottom"
Expand Down
12 changes: 8 additions & 4 deletions content/blog/2023-dutch-elections/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ polls_peilingwijzer <- tribble(
polls_peilingwijzer |>
inner_join(data_parties) |>
inner_join(data_polls_pre_new |>
select(party, current_seats)) |>
select(party, current_seats)) |>
mutate(
color = ifelse(color == "grey92", "grey", color),
range_max_label = ifelse(range_max <= 2,
Expand Down Expand Up @@ -831,7 +831,9 @@ summary_municipality <- results_municipality |>
) +
labs(
title = "Political identity",
subtitle = "Is the municipalitiy more<br><span style='color: #B24334'>progressive</span> or <span style='color: #4180B4'>conservative</span>?",
subtitle = "Is the municipalitiy more<br>
<span style='color: #B24334'>**progressive**</span> or
<span style='color: #4180B4'>**conservative**</span>?",
fill = NULL
) +
scico::scale_fill_scico(
Expand All @@ -847,7 +849,9 @@ summary_municipality <- results_municipality |>
) +
labs(
title = "Political color",
subtitle = "Is the municipalitiy more<br><span style='color: #B24334'>left</span> or <span style='color: #4180B4'>right</span> leaning?",
subtitle = "Is the municipalitiy more<br>
<span style='color: #B24334'>**left**</span> or
<span style='color: #4180B4'>**right**</span> leaning?",
fill = NULL
) +
scico::scale_fill_scico(
Expand All @@ -867,7 +871,7 @@ summary_municipality <- results_municipality |>
plot.title.position = "plot",
plot.title = element_markdown(size = 16, face = "bold"),
plot.subtitle = element_markdown(),
plot.caption = element_markdown(lineheight = 0.75),
plot.caption = element_markdown(lineheight = 1),
plot.caption.position = "plot",
legend.text = element_blank(),
legend.position = "bottom"
Expand Down

0 comments on commit fd9239e

Please sign in to comment.