search for: x1zoo

Displaying 2 results from an estimated 2 matches for "x1zoo".

2012 Mar 22
1
Questions on plotting using zoo toolbox: (1) dual axes (2)legend
Hi, I have three time series and I would like to plot them on the same graph such that two of them share left y-axis and the third uses right y-axis. rm(list=ls()) library(zoo) x1 <- read.csv(file="120322DBCdata.csv", header=TRUE) x1date<-as.yearqtr(1979)+seq(0,nrow(x1)-1)/4 x1zoo<-zoo(x1, x1date, frequency=4) x1zoodata<-cbind(x1zoo$D4GDP, x1zoo$D4NE, x1zoo$CEPDexpansion) plot(x1zoodata, screen=1) My questions are: 1. How can I have the second y-axis on the right? 2. The only legend shown in the graph is "x1zoodata", but I would like to see the names of...
2012 Feb 21
1
Questions on Data reading using zoo package
...NA NA 0.95 1.02 26 1980M02 NA NA 1.10 1.18 27 1980M03 NA NA 1.06 1.20 28 1980M04 NA NA 0.93 1.24 29 1980M05 NA NA 1.19 1.38 30 1980M06 NA NA 1.30 1.36 31 1980M07 NA NA 1.52 1.35 32 1980M08 NA NA 1.62 1.26 > x1zoo<-zoo(x1, as.yearmon(1978)+seq(0,nrow(x1)-1)/12, frequency=12) > x1zoo TIME CPI CPIZF UNR UNRSA ¤@¤ë 1978 1978M01 <NA> <NA> 2.01 2.16 ¤G¤ë 1978 1978M02 <NA> <NA> 1.84 1.84 ¤T¤ë 1978 1978M03 <NA> <NA> 1.76 1.91 ¥|¤ë...