File:Piechart.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search

Piechart.svg(SVG file, nominally 703 × 321 pixels, file size: 13 KB)

[edit] Summary

Example of a pie chart, along with a bar plot showing the same data and indicating that the pie chart is not the best possible chart for this particular dataset.

The graphic was created by User:Schutz for Wikipedia on 27 December 2006, using the R statistical project. The program that generated the graphic is given below; the data and the idea are from w:Image:PieCompare.png by w:User:Chrispounds. The graph was exported in postscript format, converted to SVG using the pstoedit command, and the layout was slightly modified using Inkscape before upload.

 
  a <- c(17, 18, 20, 22, 23)
  cols <- c("red", "blue", "green", "yellow", "black")
  
  postscript("piechart.eps", paper="special", width=8, height=4)
  par(mfrow=c(1,2))
  par(cex=1.2)
  par(font=2)
  defaultmar <- par("mar")
  par(mar=c(0,0,0,0))  # Margins
  par(las=1)           # Axis labels always horizontal
  par(font.axis=2)
  pie(a, init=90, clockwise=T, col=cols)
  par(mar=defaultmar-c(1.7,2,2.5,1))
  barplot(rev(a), horiz=T, xlim=c(0,25), col=rev(cols), border=0, names.arg=5:1, space=0.8)
  dev.off()
  


Rlogo.png

This chart was created with R.

[edit] Licensing

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Azərbaycan | Беларуская (тарашкевіца) | Български | Català | Cebuano | Soranî / کوردی | Česky | Cymraeg | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | Estremeñu | فارسی | Suomi | Français | Galego | עברית | हिन्दी | Hrvatski | Magyar | Հայերեն | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Ripoarisch | Kurdî / كوردی | Latina | Lietuvių | Latviešu | 文言 | Македонски | Bahasa Melayu | Plattdüütsch | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Vèneto | Tiếng Việt | Walon | 吴语 | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | 粵語 | +/−

File history

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

Date/TimeThumbnailDimensionsUserComment
current11:39, 1 January 2007Thumbnail for version as of 11:39, 1 January 2007703×321 (13 KB)Schutz (talk | contribs)
01:32, 27 December 2006Thumbnail for version as of 01:32, 27 December 2006680×320 (15 KB)Schutz (talk | contribs)
01:26, 27 December 2006Thumbnail for version as of 01:26, 27 December 2006663×293 (15 KB)Schutz (talk | contribs)
01:06, 27 December 2006Thumbnail for version as of 01:06, 27 December 2006579×282 (14 KB)Schutz (talk | contribs)
00:53, 27 December 2006Thumbnail for version as of 00:53, 27 December 2006670×300 (15 KB)Schutz (talk | contribs) (Example of a pie chart)

The following page links to this file:

Global file usage

The following other wikis use this file: