Misplaced Pages

File:Gdp to debt ratio.svg

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
File:Gdp to debt ratio.svgSize of this PNG preview of this SVG file: 750 × 600 pixels. Other resolutions: 300 × 240 pixels | 600 × 480 pixels | 960 × 768 pixels | 1,280 × 1,024 pixels | 2,560 × 2,048 pixels | 1,800 × 1,440 pixels.

Original file (SVG file, nominally 1,800 × 1,440 pixels, file size: 377 KB)

This is a file from the Wikimedia Commons. Information from its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Summary

DescriptionGdp to debt ratio.svg English: Debt-to-GDP ratio for some european countries, data are taken from eurostat data explorer (31 may 2015, Table: gov_10dd_edpt1). It was created after File:Staatsschuldenquote.pdf. Data are updated, countries are reordered such that countries with similar ratio development are located nearby, and colors are changed to reflect sizes better as well as to improve for color blind people.
Date
Source Own work
Author Sigbert
SVG developmentInfoField The SVG code is valid. This diagram was created with R.
Source codeInfoField

R code

trim    <- function (x) gsub("^\\s+|\\s+$", "", x)
 reorder <- function(d, wts) stats::reorder(d, wts, agglo.FUN = mean)
 dist    <- function(q) {
   nc <- nrow(q)
   qm<- as.matrix(q)
   d <- matrix(NA, ncol=nc, nrow=nc)
   for (i in 1:nc) d <- apply(abs(sweep(qm, 2, qm)), 1, median, na.rm=T)
   rownames(d) <- colnames(d) <- rownames(q)
   print(d)
   as.dist(d)
 }
 library("foreign")
 library("RColorBrewer")
 library("gplots")
 library("countrycode")
 x     <- read.spss("gov_10dd_edpt1.sav", to.data.frame=T)
 x$value <- NA 
 quote <- data.frame(COUNTRY=trim(x$GEO), YEAR=as.numeric(as.character(x$TIME)), RATIO=as.numeric(as.character(x$value))) 
 quote <- reshape(quote, idvar="COUNTRY", timevar="YEAR", direction = "wide")
 # 170110: select only entries with two letter country code
 ccountry <- as.character(quote$COUNTRY)
 scountry <- (nchar(ccountry)==2) 
 # 170110: replace Greece and United Kingdom
 nq    <- countrycode(ccountry, "iso2c", "country.name")
 nq=="EL")] <- "Greece"
 nq=="UK")] <- "United Kingdom"
 quote <- quote
 rownames(quote) <- nq
 colnames(quote) <- as.character(1994+seq(ncol(quote)))
 colfun <- rev(brewer.pal(11, "Spectral"))
 note <- apply(as.matrix(quote), c(1,2), function(elem) { if (is.na(elem)) return(""); sprintf("%.0f%%", elem) })
 svg("gdp_to_debt_ratio.svg", width=20, height=16)
 par(cex.main=2)
 heatmap.2(as.matrix(quote), scale="none", col=colfun, margins=c(7,14),
           Colv=NA, distfun=dist, reorderfun=reorder,
           tracecol=NA, 
           main="Debt-to-GDP ratio for some\neuropean countries", cexRow=2, cexCol=2,
           cellnote=note, notecol="black", notecex=1.6,
           key.title="Color key", key.ylab="",  key.xlab="", key.par=list(mar=c(3,1,2,0)), 
           keysize=0.5)
 dev.off()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their 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.

http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

creator<\/a>"}},"text\/plain":{"en":{"":"creator"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":2093,\"id\":\"P2093\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"author name string<\/a>"}},"text\/plain":{"en":{"":"author name string"}}},"{\"value\":\"Sigbert\",\"type\":\"string\"}":{"text\/html":{"en":{"P2093":"Sigbert","P4174":"Sigbert<\/a>"}},"text\/plain":{"en":{"P2093":"Sigbert","P4174":"Sigbert"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":4174,\"id\":\"P4174\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"Wikimedia username<\/a>"}},"text\/plain":{"en":{"":"Wikimedia username"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":2699,\"id\":\"P2699\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"URL<\/a>"}},"text\/plain":{"en":{"":"URL"}}},"{\"value\":\"http:\\\/\\\/commons.wikimedia.org\\\/wiki\\\/User:Sigbert\",\"type\":\"string\"}":{"text\/html":{"en":{"P2699":"http:\/\/commons.wikimedia.org\/wiki\/User:Sigbert<\/a>"}},"text\/plain":{"en":{"P2699":"http:\/\/commons.wikimedia.org\/wiki\/User:Sigbert"}}}}">

creator

some value

author name string: SigbertWikimedia username: SigbertURL: http://commons.wikimedia.org/User:Sigbertcopyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":88088423,\"id\":\"Q88088423\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted, dedicated to the public domain by copyright holder<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted, dedicated to the public domain by copyright holder"}}}}">

copyright status

copyrighted, dedicated to the public domain by copyright holder

copyright license<\/a>"}},"text\/plain":{"en":{"":"copyright license"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":6938433,\"id\":\"Q6938433\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P275":"Creative Commons CC0 License<\/a>"}},"text\/plain":{"en":{"P275":"Creative Commons CC0 License"}}}}">

copyright license

Creative Commons CC0 License

source of file<\/a>"}},"text\/plain":{"en":{"":"source of file"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":66458942,\"id\":\"Q66458942\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P7482":"original creation by uploader<\/a>"}},"text\/plain":{"en":{"P7482":"original creation by uploader"}}}}">

source of file

original creation by uploader

inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2015-05-31T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"31 May 2015"}},"text\/plain":{"en":{"P571":"31 May 2015"}}}}">

inception

31 May 2015

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:37, 26 March 2019Thumbnail for version as of 13:37, 26 March 20191,800 × 1,440 (377 KB)WissensDürsterUpdated 2 more years of data from Eurostat, cf. "Government deficit/surplus, debt and associated data (gov_10dd_edpt1)" in https://ec.europa.eu/eurostat/data/database Adjusted size of the heatmap, removed color key, removed dendrogram, removed main title, since color key is self-explanatory and titles can be added in wiki thumbs.
17:04, 10 January 2017Thumbnail for version as of 17:04, 10 January 20171,800 × 1,440 (650 KB)SigbertNew data from Eurostat are used. Note that same number slightly changed to the previous picture; Eurostat continuously updates current and past data.
13:14, 31 May 2015Thumbnail for version as of 13:14, 31 May 20151,800 × 1,440 (366 KB)SigbertUser created page with UploadWizard

File usage

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata

This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.

If the file has been modified from its original state, some details may not fully reflect the modified file.

Width1440pt
Height1152pt