
Summary
edit| Description |
English: Preferred premier opinion polling for the 2022 South Australian state election with a local regression (LOESS) trendline for each party. |
|---|---|
| Source |
Own work |
| Date |
2025-03-09 |
| Author | |
| Permission (Reusing this file) |
See below.
|
Inspired by File:WA Opinion Polling for 2025 Election.png by Samsam21amb
Graph relies on published opinion polls from 2022 South Australian state election#Polling. Written in R.
library(ggplot2)
data <- data.frame(
Date = as.Date(c("2022-03-11", "2022-03-07", "2022-02-18", "2021-02-24",
"2020-09-10", "2020-03-06", "2019-03-12")),
Malinauskas = c(44, 45, 46, 30, 26, 36, 26),
Marshall = c(41, 40, 39, 50, 54, 38, 46)
)
data_long <- data.frame(
Date = rep(data$Date, 2),
Premier = rep(c("Malinauskas", "Marshall"), each = nrow(data)),
Vote = c(data$Malinauskas, data$Marshall)
)
data_long <- data_long[!is.na(data_long$Vote), ]
ggplot(data_long, aes(x = Date, y = Vote, color = Premier)) +
geom_point() +
geom_smooth(method = "loess", se = FALSE) +
scale_color_manual(values = c("Malinauskas" = "red", "Marshall" = "blue")) +
labs(title = "2022 South Australian State Election Preferred Premier Opinion Polling",
x = "Date",
y = "Preferred Premier (%)",
color = "Premier") +
theme_minimal() +
theme(axis.text.x = element_text(angle = 45, hjust = 1))
Licensing
editThe person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 01:59, 9 March 2025 | 865 × 454 (10 KB) | Milkk7 (talk | contribs) | {{Information |description={{en|1=Preferred premier opinion polling for the 2022 South Australian state election with a local regression (LOESS) trendline for each party.}} |date=2025-03-09 |source={{own}} |author=Milkk7 }} Inspired by [https://commons.wikimedia.org/wiki/File:WA_Opinion_Polling_for_2025_Election.png File:WA Opinion Polling for 2025 Election.png] by Samsam21amb Graph relies on published opinion polls from [[2022 South Australian state ele... |
You cannot overwrite this file.
File usage
The following page uses this file: