nowcast.plot: Plot for nowcast output function

Description Usage Arguments Examples

View source: R/nowcast.plot.R

Description

Make plot to visualize the output of nowcast function

Usage

1
nowcast.plot(out, type = "fcst")

Arguments

out

Output of function nowcast

type

'fcst', 'factors', 'eigenvalues','eigenvectors', 'month_y'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
trans <- USGDP$Legenda$Transformation[-length(USGDP$Legenda$Transformation)]
base <- USGDP$Base[,-dim(USGDP$Base)[2]]
gdp <- month2qtr(USGDP$Base[,dim(USGDP$Base)[2]])
x <- Bpanel(base = base, trans = trans)
now <- nowcast(y = gdp, x = x, q = 2, r = 3,method = 'GRS2008')

nowcast.plot(now, type = "fcst")
nowcast.plot(now, type = "factors")
nowcast.plot(now, type = "eigenvalues")
nowcast.plot(now, type = "eigenvectors")

x2 <- Bpanel(base = base, trans = trans,aggregate = F)
now2 <- nowcast(y = gdp, x = x2, q = 2, r = 3,method = 'BR2011')

nowcast.plot(now2, type = "fcst")
nowcast.plot(now2, type = "factors")
nowcast.plot(now2, type = "eigenvalues")
nowcast.plot(now2, type = "eigenvectors")

## End(Not run)

guilbran/nowcasting documentation built on May 17, 2019, 2:09 p.m.