File:New Zealand balance of payments net international debt.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 720 × 540 pixels, file size: 139 KB)

Captions

Captions

New Zealand balance of payments and international investment position - net international debt

Summary

[edit]
Description
English: New Zealand balance of payments and international investment position - net international debt
Date
Source Own work Data: Reserve Bank of New Zealand https://www.rbnz.govt.nz/statistics/series/economic-indicators/balance-of-payments-and-international-investment-position
Author Mrfebruary
SVG development
InfoField
 
The SVG code is valid.
 
This coat of arms was created with R.
 
This SVG coat of arms uses the path text method.
Source code
InfoField

R code

# Download https://www.rbnz.govt.nz/-/media/ReserveBank/Files/Statistics/tables/m7/hm7.xlsx
library(readxl)
# read in net international debt column M from row 59 downwards (asset position and liability position column K - L = M) 
debt <-read_excel("hm7.xlsx", sheet = "Data", range ="M59:M152", col_names = F, skip =58,col_types = c("numeric"))
colnames(debt) <- "Debt" 
# convert from negative to positive values
debt <- sqrt(debt * debt)
# create time series object
debtts <- ts(debt[["Debt"]], frequency = 4, start = c(2000, 2)) 
# create svg format chart of net debt with 14 pt text font and grid lines via 'grid' with y axis as 0 to 200
svg(filename="Net-debt-NetIIP_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,3,1,1)+0.1)
plot(debtts/10^3,ylim=c(0,200),tck=0.01,axes=TRUE,ann=TRUE, las=1,col="red",lwd=1,type='l',lty=1,xlab="",ylab="")
grid(col="darkgray",lwd=1)
points(debtts/10^3,col="red",pch=19,cex = 0.75)
axis(side=4, tck=0.01, las=0,tick=TRUE,labels = FALSE)
mtext(side=1,cex=0.9,line=-1.3,"Data: https://www.rbnz.govt.nz/statistics/m7 \nBalance of Payments and International Investment Position - M7")
mtext(side=3,cex=1.2, line=-4.1,expression(paste("New Zealand net international investment position (IIP) \n(net international debt)\n2000 to 2023")) )
mtext(side=2,cex=0.9, line=-1.3,"$NZ billion Dollars")
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:
w:en:Creative Commons
attribution share alike
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/TimeThumbnailDimensionsUserComment
current03:47, 15 January 2024Thumbnail for version as of 03:47, 15 January 2024720 × 540 (139 KB)Mrfebruary (talk | contribs)update
06:48, 8 January 2024Thumbnail for version as of 06:48, 8 January 2024720 × 540 (109 KB)Mrfebruary (talk | contribs)update
02:09, 6 December 2022Thumbnail for version as of 02:09, 6 December 2022720 × 540 (102 KB)Mrfebruary (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata