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 : > > You can try facet_grid(variable~., scales = "free_y") > > On Thu, 21 Jan 2016 at 19:29 Maxim Fomin wrote: >> >> Dear R users, >> >> I have a (melted) data fram

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

2016-01-21 Thread Maxim Fomin
, group=variable, color=variable))+geom_line()+facet_grid(variable~.) Best regards, Maxim P.S dput structure(list(date = structure(c(3652, 3683, 3712, 3743, 3773, 3804, 3834, 3865, 3896, 3926, 3957, 3987, 4018, 4049, 4077, 4108, 4138, 4169, 4199, 4230, 4261, 4291, 4322, 4352, 4383, 4414, 4442, 4473

[R] mapping between list and vector

2015-10-29 Thread Maxim via R-help
2]] [1] "val2//val3" [[3]] [1] "val3" Above code is the fastest version I was able to come up with (the list contains about 1 million elements). I guess the for loop can be substituted by a lapply command making it less complicated

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

2015-10-07 Thread Maxim Fomin
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

[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 relevant

[R] system command and Perl confusion

2012-04-06 Thread Maxim
ontrast, running the Perl script from within R, it tries to find the modules in /System/Library/Perl/5.10.0/... I see that this is not necessarily a pure R question, but as it occurs specifically using the R system command I thought there might be someone around here who came across similar proble

[R] how to control exact positions of axis

2012-04-06 Thread Maxim
y, as it is obviously the size of the grid that make the problem, as with smaller grid size the first and last axis tick will come closer to the edges of the plot area! Right now I'm a bit lost but still I think I might overlook something pretty simple! Maxim [[altern

[R] image function help required

2011-09-23 Thread Maxim
miss? I tried in addition lattice's levelplot (no luck yet) as well as a heatmap, which I find has not enough control to produce more complex pictures consisting of multiple plots! Where should I go? Maxim [[alternative HTML version deleted]] ___

[R] sorting multiple columns of a matrix

2011-09-23 Thread Maxim
variable, in any way I would like to sort for all columns from 1:ncol(x). How to achieve this? Best Maxim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read th

Re: [R] simple plot question

2011-08-10 Thread Maxim
t optimal) to depict such data like requested! For the conventional plot: thanks for the "newline"-trick! I will play around with the ggplot library and dive a little deeper into the literature, perhaps I have looked at the wrong papers! Best Maxim 2011/8/10 R. Michael Weylandt

[R] simple plot question

2011-08-09 Thread Maxim
value,xaxt="n",beside=T) Any help is appreciated! Regards Maxim [[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

Re: [R] clustering problem

2011-03-02 Thread Maxim
uot; of the process? Best Maxim 2011/3/2 > Don't you expect it to be a lot faster if you cluster 20 items instead of > 25000? > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Maxim > Sent: Wednesday

[R] clustering problem

2011-03-02 Thread Maxim
hat can I do to access the levels for the rows? I guess the solution is easy, but after ours of playing around I thought it might be a good time to contact the mailing list! Maxim [[alternative HTML version deleted]] __ R-help@r-project.org mail

[R] performance issue with merge

2010-12-20 Thread Maxim
2:ncol(DF)] } } As soon as I set the all directives the script runs forever without any effect (files sizes: a couple of million lines per file). Is it expected, that this type of merge takes so much longer (I think it never finishes!)? Or do I have a conceptual problem with how merge works? Maxi

[R] How to generate an autoregressive di stributed lag model?

2010-06-22 Thread Maxim Podberezovikov
Dear All, I have a short question. Is there any readily available function that could generate either an ARMAX model or, more generally, an AutoRegressive Distributed Lag model? I am looking for a function that is similar to armaSim() function in fArma package. Thank you. MP _

[R] basic table statistics

2010-04-23 Thread Maxim
t;SD[count] mean(subtest$val)->Mean[count] } cbind(int,Median,SD,Mean) This works, but: isn't this much too complicated, I bet there is such functionality embedded in the base packages, but I cannot find it. Maxim [[alternative HTML version deleted]] _

[R] stuck with affy / limma

2010-03-29 Thread Maxim
ve, I do not know how to deal with the fact, that many genes are represented with mutliple probesets, often with different fold changes - is there a general recipe to deal with this question? Furthermore there are many probesets with multiple mappings, should these not be excluded from the analysis?

Re: [R] parsing files for plot

2010-01-30 Thread Maxim
Great, works perfect!!! Thanks a lot Maxim 2010/1/30 baptiste auguie > Hi again, > > Below are two versions, depending on whether you want to use scan or > read.table, > > ## with scan > library(reshape) > listOfFiles <- list.files() > d <- llply(listOfFi

Re: [R] parsing files for plot

2010-01-30 Thread Maxim
h code for such a simple task. I'd definitely prefer the plyr solution. Maxim 2010/1/30 baptiste auguie > Why don't you post an example of what your input files look like? (to > the list, not just to me!) A reproducible example is always required > if you want a good ans

[R] parsing files for plot

2010-01-30 Thread Maxim
Hi, I have many files containing one column of data. I like to use the scan function to parse the data. Next I like to bind to a large vector. I try this like: count<-1 files <- list.files() # all files in the working directory for(i in files) { tmp <- scan(i) assign(files[count],

[R] problem with data processing in R

2009-12-10 Thread Maxim
ding on ID) and then to process it (sorting according to maximum, heatmap)? Which commands do I have to issue for the manipulation of the data.frame? I tried the I'd be glad if someone could help me finding the correct direction to solve my problem! Best regards Maxim [[a