Hi all,

I've got an xts time series of stock symbols and closing prices.

> head(x)
           symbol close
2010-01-04 "AFB"  "13.46"
2010-01-04 "AKP"  "12.80"
2010-01-04 "APX"  " 8.78"
2010-01-04 "AYN"  "13.15"
2010-01-04 "BAF"  "13.50"
2010-01-04 "BBF"  "12.86"
> tail(x)
           symbol close
2011-01-21 "VMO"  "12.35"
2011-01-21 "VOQ"  "13.77"
2011-01-21 "VPV"  "11.97"
2011-01-21 "VTJ"  "14.74"
2011-01-21 "VTN"  "13.16"
2011-01-21 "XAA"  "12.82"

> is.xts(x)
[1] TRUE

I've made the symbols a factor

> head(xFactor)
symbol   <NA>   <NA>   <NA>   <NA>   <NA>
   AFB    AKP    APX    AYN    BAF    BBF
154 Levels: AFB AKP APX AYN BAF BBF BBK BFK BFO BFZ BIE BJZ BKK BKN BLH ...
XAA

Each factor represent a time series on closing prices.

I would like to plot those 154 time series on a single plot...

Any ideas?

Regards,

Nick

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to