#' @title Create a chart of the Real Percentage Change of GDP in the Year time series
#'
#' @description Creates a plot of series 7326
#'
#' @return An image file is saved in the 'graphs' folder, under the BETS installation directory.
#'
#' @importFrom grDevices dev.new dev.off pdf png
#' @importFrom utils read.csv2
#' @importFrom stats ts plot.ts
#' @importFrom graphics axis text points mtext arrows
draw.vargdp = function(){
vargdp = BETSget(7326)
start = c(2006,1)
if(!is.null(start)){
vargdp = window(vargdp, start = start)
}
chart.add_basic(ts = vargdp, type = "bar", ylim = c(-5.5,10), title = "Real GDP", subtitle = "Percentage Change in the Year", col = "chocolate1", trend = T)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.