Skip to content

Commit

Permalink
fix ggplot figure after bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wlangera committed Mar 11, 2024
1 parent ca89f03 commit aaf54d6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/markdown/exploratie_duinen_weidestreek.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,17 @@ chi_squared_df <- do.call(rbind.data.frame, out_list)
```

```{r}
ggplot(chi_squared_df, aes(x = steekproef_grootte, y = chisq)) +
geom_point(aes(fill = finale_grootte), shape = 21, size = 3) +
geom_text(aes(label = finale_grootte),
position = position_nudge(x = -0.3, y = 0.1)) +
scale_x_continuous(minor_breaks = sizes,
breaks = seq(min(sizes), max(sizes), 5)) +
scale_fill_gradientn(colours = c("firebrick", "yellow2", "green")) +
labs(x = "Initiële steekproefgrootte",
y = "Chi-kwadraattoetsingsgrootheid",
fill = "Finale\nsteekproef-\ngrootte")
ggplot(chi_squared_df, aes(x = steekproef_grootte, y = chisq)) +
geom_point(aes(fill = finale_grootte), shape = 21, size = 3) +
geom_text(aes(label = finale_grootte),
Expand Down

0 comments on commit aaf54d6

Please sign in to comment.