[R] ggplot2 - specific y axis scale for each time series in facet grind

2016-01-21 Thread Maxim Fomin
Dear R users, I have a (melted) data frame of several metal prices from 1980. I want to make a time series plot for each metal price. By default ggplot constructs single plot for all prices. Adding +facet_grid(variable~.) makes for each metal price a plot, but now there is another problem - scale

Re: [R] ggplot2 - specific y axis scale for each time series in facet grind

2016-01-21 Thread Maxim Fomin
Thanks, that worked. Best regards, Maxim 2016-01-21 22:29 GMT+03:00 Ulrik Stervbo <ulrik.ster...@gmail.com>: > > You can try facet_grid(variable~., scales = "free_y") > > On Thu, 21 Jan 2016 at 19:29 Maxim Fomin <mxfo...@gmail.com> wrote: >> >> De

[R] MSwM R package: model and state probability significance (p00+p11=1)

2015-10-07 Thread Maxim Fomin
be tested with Wald test. So, my question is follows. How the first test can be performed in R and where to get variance of state probabilities to perform Wald test of second hypothesis (I couldn't find relevant data in MSM.lm object)? Thanks in advance, Best regards, Maxim Fomin

[R] Doing time series markov regime switching in R

2015-09-09 Thread Maxim Fomin
Dear all, I am doing business cycle research on industry data. One of methods to identify cycle is Markov regime switching. As I see, there is a MSwM package for the purposes which is pretty straightforward to use. However, some questions for me remain: 1) Are there any packages? This is