파일:HallamGraph.png

문서 내용이 다른 언어로는 지원되지 않습니다.
위키백과, 우리 모두의 백과사전.

원본 파일(944 × 519 픽셀, 파일 크기: 116 KB, MIME 종류: image/png)

파일 설명

설명
English: Election results for Sheffield Hallam constituency from its creation in 1885 to the 2017 general election. © Jeremy Atherton 2017. Graph drawn with R
날짜 2005년 8월 17일 (원본 올리기 일시)
출처 Sreejithk2000 사용자가 CommonsHelper 도구를 사용하여 en.wikipedia에서 공용으로 옮겨왔습니다.
저자 The original uploader was 영어 위키백과JeremyA.
이 그림은 벡터 그래픽 버전(SVG)이 있습니다. 래스터(비트맵) 그림 대신 벡터 그래픽 그림을 사용하는 것이 좋습니다.

File:HallamGraph.png → File:HallamGraph.svg

벡터 그래픽에 대한 자세한 설명은 SVG 파일로 변환하기(영어) 문서를 참고해 주세요.
미디어위키의 SVG 그림 지원 정보(영어)도 같이 참고해주세요.

다른 언어로
Alemannisch  Bahasa Indonesia  Bahasa Melayu  British English  català  čeština  dansk  Deutsch  eesti  English  español  Esperanto  euskara  français  Frysk  galego  hrvatski  Ido  italiano  lietuvių  magyar  Nederlands  norsk bokmål  norsk nynorsk  occitan  Plattdüütsch  polski  português  português do Brasil  română  Scots  sicilianu  slovenčina  slovenščina  suomi  svenska  Tiếng Việt  Türkçe  vèneto  Ελληνικά  беларуская (тарашкевіца)  български  македонски  нохчийн  русский  српски / srpski  татарча/tatarça  українська  ქართული  հայերեն  বাংলা  தமிழ்  മലയാളം  ไทย  한국어  日本語  简体中文  繁體中文  עברית  العربية  فارسی  +/−
새 SVG 이름

Notes

The Background colour indicates the party of the sitting MP at any given year.

Elections held in 1895, 1900, 1916 (by-election) and 1918 do not appear on this graph, at each of these elections a single candidate was elected unopposed (Conservative in 1895, 1900, and 1918, Liberal in 1916). Gaps indicate the missing elections.

Statistics gathered from:

Parties:

Data Used:

Year Conservative Labour Liberal Other
1885.96 54.4 45.6
1886.57 57.8 42.2
1892.57 54.3 45.7
1895.6 unopp
1900.81 unopp
1906.61 50.4 49.6
1910.11 50.9 49.1
1910.97 50.9 49.1
1916 unopp
1918.95 unopp
1922.87 59.4 40.6
1923.93 57.7 23.9 23.4
1924.83 63.7 36.3
1928 53.7 30.8 15.5
1929.41 60.9 39.1
1931.82 77.5 22.5
1935.87 67.3 32.7
1939 61.7 38.3
1945.51 47.1 38.5 7.7 6.7
1950.15 65.1 26.5 8.4
1951.82 70.76 29.24
1955.4 66.23 33.77
1959.77 62.76 26.06 11.18
1964.79 54.95 26.96 18.09
1966.25 51.34 32.49 16.17
1970.46 61.32 31.43 7.25
1974.16 48.95 27.2 23.85
1974.78 49 28.97 22.03
1979.34 54.94 28.84 15.7 0.52
1983.44 50.62 19.72 28.42 1.24
1987.44 46.29 20.38 32.51 0.83
1992.27 45.52 20.15 33.09 1.24
1997.33 33.1 13.5 51.3 2
2001.43 31 12.4 55.4 1.1
2005.34 29.7 12.6 51.1 6.7
2010.35 23.5 16.1 53.4 6.8
2015.35 13.6 35.8 40 10.6
2017.44 23.8 38.4 34.6 3.1

Code:

The graph was produced with R. The following code will reproduce the graph using the data on this page.

library(tidyverse)
library(htmltab)

hallam <- htmltab("https://commons.wikimedia.org/wiki/File:HallamGraph.png",2, rm_nodata_cols = F)
hallam <- as_tibble(hallam)

tidy_hallam <- gather(hallam, "Party", "Votes", 2:5)
tidy_hallam$Year <- as.numeric(tidy_hallam$Year)
tidy_hallam$Party <- as.factor(tidy_hallam$Party)
tidy_hallam$Votes <- as.numeric(tidy_hallam$Votes)

hallam_victor <- tidy_hallam %>% filter(is.na(Votes) == FALSE) %>% group_by(Year) %>% summarize(Party = Party[which(Votes == max(Votes))])
hallam_victor <- hallam_victor %>%
  add_row(Year = 1895.6, Party = "Conservative") %>%
  add_row(Year = 1900.81, Party = "Conservative") %>%
  add_row(Year = 1916, Party = "Liberal") %>%
  add_row(Year = 1918.95, Party = "Conservative") %>%
  arrange(Year)
hallam_victor$start_year <- hallam_victor$Year
hallam_victor$end_year <- c(hallam_victor$Year[-1], 2019)
hallam_victor[1,3] <- 1885

party_colours <- c("#0087DC", "#D50000", "#FDBB30", "dark grey")
names(party_colours) <- levels(tidy_hallam$Party)

ggplot(tidy_hallam) +
  geom_rect(data = hallam_victor,
            aes(xmin = start_year,xmax = end_year, ymin = -Inf, ymax = Inf, fill = Party),
            alpha = 0.35,
            show.legend = F) +
  geom_line(aes(x = Year, y = Votes, colour = Party), size = 0.703) +
  geom_point(aes(x = Year, y = Votes, colour = Party)) +
  geom_hline(yintercept = 100, colour = "black", size = 1.5) +
  geom_vline(xintercept = 2019, colour = "black", size = 1.5) +
  scale_colour_manual(values = party_colours, labels = c("Conservative", "Labour", "Liberal", "Other")) +
  scale_fill_manual(values = party_colours) +
  theme(text = element_text(colour = "black", size = 14),
        axis.text = element_text(colour = "black", size = 11),
        axis.line.x = element_line(colour = "black", size = 0.703),
        axis.ticks.x = element_line(colour = "black", size = 0.703),
        axis.line.y = element_line(colour = "black", size = 0.703),
        axis.ticks.y = element_line(colour = "black", size = 0.703),
        axis.ticks.length = unit(5, "points"),
        panel.grid.major = element_line(colour = "blue", size = 0.5, linetype = 3),
        panel.grid.minor = element_blank(),
        panel.background = element_blank(),
        legend.position = c(.98, .97),
        legend.text = element_text(colour = "black", size = 11),
        legend.title=element_blank(),
        legend.justification = c("right", "top"),
        legend.box.just = "right",
        legend.key = element_blank(),
        legend.background = element_rect(fill = "white", colour = "black"),
        legend.margin = margin(0, 4, 4, 4)) +
  scale_x_continuous(expand = c(0, 0), limits = c(1885,2019), breaks = seq(1890, 2010, 10)) +
  scale_y_continuous(expand = c(0, 0), limits = c(0, 100), breaks = seq(0, 100, 20)) +
  labs(x = "Year", y = "Percentage Vote")

ggsave("HallamGraph.png", device = "png", units = "cm", width = 20, height = 11, dpi = 120)

라이선스

w:ko:크리에이티브 커먼즈
저작자표시 동일조건변경허락
이 파일은 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 Unported 라이선스로 배포됩니다. 면책 조항이 적용됩니다.
이용자는 다음의 권리를 갖습니다:
  • 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
  • 재창작 – 저작물의 개작, 수정, 2차적저작물 창작
다음과 같은 조건을 따라야 합니다:
  • 저작자표시 – 적절한 저작자 표시를 제공하고, 라이센스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
  • 동일조건변경허락 – 만약 당신이 이 저작물을 리믹스 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.
이 라이선스 틀은 GFDL 라이선스 변경의 일부로 이 파일에 추가되었습니다.
GNU head GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다. 면책 조항이 적용됩니다.

기존 올리기 기록

The original description page was here. All following user names refer to en.wikipedia.
  • 2010-05-07 15:04 JeremyA 945×520× (76489 bytes)
  • 2005-11-28 01:55 JeremyA 945×520× (23661 bytes) another test of background colours
  • 2005-11-28 01:05 JeremyA 945×520× (23331 bytes) testing new background colour
  • 2005-11-28 00:45 JeremyA 945×520× (22261 bytes) minor alterations to graph
  • 2005-11-25 03:33 JeremyA 945×520× (23836 bytes) updated to include all results since 1885
  • 2005-11-04 05:39 JeremyA 945×520× (21367 bytes) Results back to 1931
  • 2005-10-08 00:49 JeremyA 589×337× (22286 bytes) Add 1950 result, cleanup a little
  • 2005-09-05 19:31 JeremyA 589×337× (9915 bytes) Update party colours to better match those used elsewhere on wikipedia
  • 2005-08-21 17:11 JeremyA 589×337× (9906 bytes) correct a minor mistake
  • 2005-08-21 16:43 JeremyA 589×337× (9871 bytes)
  • 2005-08-17 02:24 JeremyA 589×337× (8602 bytes) {{GFDL}}

설명

이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

이 파일에 묘사된 항목

다음을 묘사함

파일 역사

날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

날짜/시간섬네일크기사용자설명
현재2017년 6월 13일 (화) 13:072017년 6월 13일 (화) 13:07 판의 섬네일944 × 519 (116 KB)JeremyARe-create graph with open source software (R)
2017년 6월 10일 (토) 00:322017년 6월 10일 (토) 00:32 판의 섬네일945 × 520 (74 KB)JeremyA2017 results added
2015년 5월 9일 (토) 00:502015년 5월 9일 (토) 00:50 판의 섬네일945 × 520 (76 KB)JeremyAupdate with 2015 election
2010년 6월 5일 (토) 17:012010년 6월 5일 (토) 17:01 판의 섬네일945 × 520 (75 KB)File Upload Bot (Magnus Manske) {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|Election results for Sheffield Hallam constituenc

다음 문서 1개가 이 파일을 사용하고 있습니다:

이 파일을 사용하고 있는 모든 위키의 문서 목록