[R] cbind'ing multivariate ts objects

2008-06-14 Thread Андрей Парамонов
I use R 2.7.0 on GNU/Linux. I have noticed a problem in cbind method for multivariate time series (ts) objects. Consider the following example: t - ts(data.frame(a = 10:20, b = 20:30, c = 30:40, d = 40:50)) t1 - t[, c('a', 'b')] t2 - t[, c('c', 'd')] colnames(t1) [1] a b colnames(t2) [1] c

Re: [R] cbind'ing multivariate ts objects

2008-06-15 Thread Андрей Парамонов
2008/6/15 Prof Brian Ripley [EMAIL PROTECTED]: Consistent with what? This is how all such combinations of matrices in R work, and avoids duplicate names. Hm, for data.frames and matrices it works like this: d - data.frame('a' = 10:20, b = 20:30, c = 30:40, d = 40:50) d1 - d[c('a', 'b')]

Re: [R] cbind'ing multivariate ts objects

2008-06-15 Thread Андрей Парамонов
2008/6/15 jim holtman [EMAIL PROTECTED]: Is this what you want: t - ts(data.frame(a = 10:20, b = 20:30, c = 30:40, d = 40:50)) t1 - t[, c('a', 'b')] t2 - t[, c('c', 'd')] colnames(t1) [1] a b colnames(t2) [1] c d x - cbind(t1, t2) colnames(x) [1] t1.a t1.b t2.c t2.d colnames(x) -

[R] pdftex treats R pdf figures incorrectly

2009-04-10 Thread Андрей Парамонов
Hello! I use R 2.8.1 under Debian GNU/Linux. I've run into a problem including R pdf figures into LaTeX document. To reproduce: 1) Execute the following minimal R script: pdf('fig.pdf', family = 'URWTimes', width = 5, height = 5) plot(rnorm(10), main = 'Тест', xlab = 'Абсцисса', ylab =

Re: [R] Multi matrix row-wise mapply?

2008-10-21 Thread Андрей Парамонов
Thanks for the replies! sapply(1:nrow(A), function(i) f(A[i,],B[i,]) ) Actually, this solution is even slower than the explicit for-loop :-( Andrey __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] Code contribution

2008-10-26 Thread Андрей Парамонов
Hello group! I mantain my own package cmrutils which is available under the GPL: http[s]://aparamon.msk.ru/svn/study/R-packages/cmrutils I don't want to put it to CRAN yet because it mostly consists of specialized helper functions which are presumably not valuable for other people. But I think

Re: [R] Smooth periodic splines

2009-01-17 Thread Андрей Парамонов
2009/1/16 Spencer Graves spencer.gra...@pdf.com: 1. RSiteSearch('{periodic spline}') produced 12 hits. I looked at the first five and found that four of them seemed relevant to your question. 2. The third hit in this list notes that the DierckxSpline package has periodic splines,

[R] Micro-point with pch=16?

2014-04-07 Thread Андрей Парамонов
Hello! I'm trying to plot a 3D dataset as a scatter-plot, coding Z-axis values with point size. I pass the following parameters to plot function: type = 'p', pch = 16, cex = intensity/max(intensity) In my dataset, max(intensity)/min(intensity) is ~4000. However, visual points vary in radius

Re: [R] Micro-point with pch=16?

2014-04-07 Thread Андрей Парамонов
07.04.2014 12:51, Jim Lemon пишет: On 04/07/2014 04:33 PM, Андрей Парамонов wrote: Hello! I'm trying to plot a 3D dataset as a scatter-plot, coding Z-axis values with point size. I pass the following parameters to plot function: type = 'p', pch = 16, cex = intensity/max(intensity) In my

Re: [R] Micro-point with pch=16?

2014-04-07 Thread Андрей Парамонов
07.04.2014 18:53, Boris Steipe пишет: Since you won't be able to see the effect on-screen, how about a little script that post-processes the SVG? B. It would be the way-to-go, but I'm not sure how to 1) determine which point corresponds to which element in svg file, 2) modify those mysterious