File:Debt to GDP ratio New Zealand Government timeseriesnotitle 720by540.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 720 × 540 pixels. Other resolutions: 320 × 240 pixels | 640 × 480 pixels | 1,024 × 768 pixels | 1,280 × 960 pixels | 2,560 × 1,920 pixels.
Original file (SVG file, nominally 720 × 540 pixels, file size: 117 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionDebt to GDP ratio New Zealand Government timeseriesnotitle 720by540.svg |
English: A time series of gross debt to GDP for the core New Zealand Government 1860 to 2000 |
Date | |
Source | http://archive.stats.govt.nz/~/media/Statistics/browse-categories/economic-indicators/national-accounts/Long-term%20data%20series/D%20Government/table-d4-1.xls |
Author | Mrfebruary |
SVG development InfoField | |
Source code InfoField | R code# obtain data sheet from Statistics NZ
urlrawdata <- c("http://archive.stats.govt.nz/~/media/Statistics/browse-categories/economic-indicators/national-accounts/Long-term%20data%20series/D%20Government/table-d4-1.xls")
filerawdata <-c("table-d4-1.xls")
download.file(urlrawdata, filerawdata)
# load Readxl library
library(readxl)
# List all sheets in an excel spreadsheet
excel_sheets("table-d4-1.xls")
[1] "Data" "Documentation"
# read in debt as % of GDP from column "BW"
debt2gdp <-read_excel("table-d4-1.xls", sheet = "Data", range ="BW31:BW172", col_names = F, skip =30,col_types = c("numeric"))
# convert to time series object
debt2gdptimeseries <-ts(data = debt2gdp, start = 1860, end =2000)
# create svg format chart with 14 pt text font and grid lines via 'grid'
svg(filename="debt2gdptimeseriesnotitle_720by540.svg", width = 8, height = 6, pointsize = 14, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"))
par(mar=c(2.7,2.7,1,1)+0.1)
plot(debt2gdptimeseries,tck=0.01,ylim=c(0,250),xlim=c(1863,1998),axes=TRUE,ann=TRUE, las=1,col=2,lwd=2,type='l',lty=1)
grid(col="darkgray",lwd=1)
axis(side=4, tck=0.01, las=0,tick=TRUE,labels = FALSE)
mtext(side=1,cex=0.8,line=-1.3,"Data: Statistics NZ, Long-term data series, D4.1 Central government debt, table-d4-1.xls")
mtext(side=3,cex=1.7, line=-3.6,expression(paste("New Zealand Gross Core Government \nDebt 1860 to 2000")) )
mtext(side=2,cex=0.9, line=-1.3,"% of Real GDP (2000)")
mtext(side=4,cex=0.75, line=0.05,R.version.string)
dev.off()
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 04:25, 7 March 2019 | 720 × 540 (117 KB) | Mrfebruary (talk | contribs) | add title , thicker line weight | |
03:48, 24 February 2019 | 720 × 540 (90 KB) | Mrfebruary (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
- Usage on uz.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 576pt |
---|---|
Height | 432pt |