File:New Zealand opinion polls - preferred prime minister 2005-2008.png

Original file(1,600 × 1,198 pixels, file size: 121 KB, MIME type: image/png)

Summary

Description Graph showing preferences for prime minister in New Zealand since the 2005 election, according to various political polls. See w:Opinion polling for the New Zealand general election, 2008 for details of the polling data.
Date
Source Own work
Author Avenue (Avenue)
 
This chart was created with R.

This graph was created using R's ggplot2 package. Here is the source code, available under GPL version 2 and later as well as the licenses below.

library(reshape)
library(ggplot2)
ppm <- read.csv("NZ opinion polls 2006-2008 PPM.csv", na.strings="-")
ppm$Date <- as.Date(ppm$Date)
lppm <- melt(ppm[,-3], id.var=c("Poll", "Date"), variable_name="Politician")
names(lppm)[4] <- "Support"
lppm$Politician <- with(lppm, reorder(Politician, Support, na.rm=TRUE))
levels(lppm$Politician) <- sub(".", " ", levels(lppm$Politician), fixed=TRUE)
p <- ggplot(lppm, aes(x=Date, y=Support, colour=factor(Politician)))
p + geom_point() + stat_smooth(se=FALSE) + 
    scale_colour_manual(name = "Politician", values = c("black", "purple", "blue", "red")) + 
    scale_x_date(major="4 months", format="%b-%Y") +
    scale_y_continuous(limits=c(0,55), name="Support (%)")

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

25 March 2008

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current04:49, 23 April 2008Thumbnail for version as of 04:49, 23 April 20081,600 × 1,198 (121 KB)AvenueUpdated version, including two new polls
23:39, 29 March 2008Thumbnail for version as of 23:39, 29 March 20081,600 × 1,198 (117 KB)AvenueUpdated version, including extra polls
12:11, 25 March 2008Thumbnail for version as of 12:11, 25 March 20081,600 × 1,198 (112 KB)Avenue== Summary == {{Information |Description=Graph showing preferences for prime minister in New Zealand since the 2005 election, according to various political polls. See w:Opinion_polling_for_the_New_Zealand_general_election,_2008 for details of the p
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file: