Re: [R] print table on plot

2012-04-27 Thread statquant2
Thank you all. addtable2plot seem to be the best solution visually speaking. ++ -- View this message in context: http://r.789695.n4.nabble.com/print-table-on-plot-tp4589804p4591958.html Sent from the R help mailing list archive at Nabble.com. __

[R] print table on plot

2012-04-26 Thread statquant2
Hello, I would like to be able to plot an array on a plot, something like: |arg1 | arg2 | arg3 val1| 0.9| 1.1| 2.4 val2| 0.33 | 0.23 | -1.4 val3| hello| stop | test I know Rwave is good to report but don't want to use it. ? Is there a package that allow quick and dirty plot of

Re: [R] print table on plot

2012-04-26 Thread statquant2
Hello, ok for xtable, but how will I print the latex code generated in a plot ? Cheers -- View this message in context: http://r.789695.n4.nabble.com/print-table-on-plot-tp4589804p4590407.html Sent from the R help mailing list archive at Nabble.com.

[R] multiple density plot

2012-03-16 Thread statquant2
Hello I am looking for a special plot. Let's suppose I have *100 days and *each day I have a (1D) distribution of the same variable. I would like to plot *dates on x axis and *one distribution per date on the y axe. Do you know a way of doing it ?

[R] Rscript example

2012-03-01 Thread statquant2
Hi there, I am trying to find an example how to use Rscript Let's suppose I want to pass 3 arguments (I don't want [options] and -e [expressions] as described in help) *on the command line myRscript.R -arg1=value1 -arg2=value2 -arg3=value3 *In the script #! /path/to/Rscript args =

Re: [R] Rscript example

2012-03-01 Thread statquant2
Hey Petr, ok I was thinking that R would handle the split by itself. I guess using eval we can even make arg1=val1 being executed by R. Ok tx Colin -- View this message in context: http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4437659.html Sent from the R help mailing list archive at

[R] Sorting strings

2012-02-20 Thread statquant2
Hi all, I am having difficulties to understand how R sort strings: If I do R) sort(c(X.,X0B)) [1] X. X0B So for me, as far as lexicographic order is concerned I can add whatever to the end, the order will remain the same, but : R) sort(c(X.Z,X0B.Z)) [1] X0B.Z X.Z Can somebody give me a trick

Re: [R] Sorting strings

2012-02-20 Thread statquant2
Ok so it changed from 2.12.2 to 2.14.1 ?? Can somebody tell me how to modify my sort or whatever to get the save resilt that I would get in 2.14.1 ? Cheers -- View this message in context: http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4403858.html Sent from the R help mailing list

Re: [R] Sorting strings

2012-02-20 Thread statquant2
I did, but this does not give the answer to my question... Anybody knows how to tweack the behaviour of sort or how to do ? -- View this message in context: http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404091.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Sorting strings

2012-02-20 Thread statquant2
Ok I have : R) str(R.Version()) List of 13 $ platform : chr x86_64-unknown-linux-gnu $ arch : chr x86_64 $ os: chr linux-gnu $ system: chr x86_64, linux-gnu $ status: chr $ major : chr 2 $ minor : chr 12.2 $ year : chr

Re: [R] Sorting strings

2012-02-20 Thread statquant2
NICE DDE It solves my problem ! Awesome stuff -- View this message in context: http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404424.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] Cointegration critical value tables

2012-01-16 Thread statquant2
Hello all, I am looking for complete table of critical values for cointegration unit root test as given in Engle and Yoo [ 1987] Ouliaris et al. [1989] MacKinnon [1991] I usually find 1-5-10% values but no complete table. Would anybody have a source or monte-carlo code implementing this? Regards

Re: [R] simulating stable VAR process

2012-01-13 Thread statquant2
Hello Paul Thanks for the answer but my point is not how to simulate a VAR(p) process and check that it is stable. My question is more how can I generate a VAR(p) such that I already know that it is stable. We know a condition that assure that it is stable (see first message) but this is not a

[R] access/row access/col access

2012-01-13 Thread statquant2
Hello, I have a data.frame and I want to transfor it in a list of rows or columns. I can do apply(myDataFrame,MARGIN=1,FUN=???) I remember that there is a function which mean return or access column ... something like :: or ], or [, I can't remember can somebody refresh my memory? -- View this

[R] simulating stable VAR process

2012-01-04 Thread statquant2
Hello all, I looking at package dse or vars or mAr I know how to simulate a VAR(p) process, my problem is that most of those processes are unstable (not weakly stationary). Do anybody know how to generate a random VAR (or VARMA even better) process that is weakly stationary? Thanks -- View this

Re: [R] simulating stable VAR process

2012-01-04 Thread statquant2
More specifically. I know that a condition for a VAR(p) process to be stable (weakly stationary) is that the companion form of the equation (see AWESOME Pfaff book analysis of integrated and cointegrated time series in R) as eigenvalues of modulus 1. My problem is that I want to generate such

[R] generic argument passing to plot function

2011-09-28 Thread statquant2
Hello I am trying to write a function that would plot timeseries easily... I aim at plotting two time-series on 2 different y axis sharing the same x-axis I succeded in doing so: plotTimeSerie(x,y,y2,[a lot of other args]){ ... plot() axis.POSIXct(side=1) #here I build the x-axis points() #here

[R] moving xlabels in lattice

2010-11-25 Thread statquant2
Dear R users, I am trying to move the xlab string on my xyplot, without success, I would like it to shifted down, would one of you know a way ? Thanks for reading Colin -- View this message in context: http://r.789695.n4.nabble.com/moving-xlabels-in-lattice-tp3059092p3059092.html Sent from

Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2
I found it is mgp -- View this message in context: http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057075.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] shifting down ylab in a plot

2010-11-24 Thread statquant2
Hi guys, I am trying to shift down the ylab of my plot but can't find how to do it. I tried to tune mar but it enable more room for the labels to be displayed but it does not move to ylab as I would like. Is there a way with par to shift down my ylab ?? Cheers -- View this message in context:

Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2
No in fact this is not working as all main,xlab,ylab are shited if mgp is changed Any help ? -- View this message in context: http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057081.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2
thanks Phillip for the trick. However I am a bit surprised that something as trivial as this is not accessible via par options... If somebody know how to do it with par ... or anything from graphics would be nice to know Cheers -- View this message in context:

[R] X11 and pdf differences

2010-11-05 Thread statquant2
Hi guys, I have the following problem : when plooting using the X11() device, the output I get is different from the output I get when I use pdf(). For instance the title font size in a pdf seems to be proportionnaly bigger that in a x11... I tryed to set pdf.options() egal to x11.options(),

Re: [R] Milliseconds and Time object

2010-10-22 Thread statquant2
Yes it was what I was after ... sorry should have looked again. Thanks -- View this message in context: http://r.789695.n4.nabble.com/Milliseconds-and-Time-object-tp3001570p3006817.html Sent from the R help mailing list archive at Nabble.com. __

[R] Milliseconds and Time object

2010-10-19 Thread statquant2
Hello all, my question for today is the following : I have 1. a date (in a string but straightforward to convert to any format) 2. the time as the number of milliseconds elapsed since hour 00:00:00.000 of this date. My question is : 1. Is there a in built function that can give me the

Re: [R] efficient equivalent to read.csv / write.csv

2010-09-28 Thread statquant2
Hi, after testing R) system.time(read.csv(myfile.csv)) user system elapsed 1.126 0.038 1.177 R) system.time(read.csv.sql(myfile.csv)) user system elapsed 1.405 0.025 1.439 Warning messages: 1: closing unused connection 4 () 2: closing unused connection 3 () It seems that

Re: [R] efficient equivalent to read.csv / write.csv

2010-09-28 Thread statquant2
Hello all, the test I provided was just to pinpoint that for loading once a big csv file with read.csv was quicker than read.csv.sql... I have already optimized my calls to read.csv for my particular problem, but is a simple call to read.csv was quicker than read.csv.sql I doubt that specifying

Re: [R] efficient equivalent to read.csv / write.csv

2010-09-27 Thread statquant2
thank you very much for this sql package, the thing is that thoses table I read are loaded into memory once and for all, and then we work with the data.frames... Do you think then that this is going to be quicker (as I would have thougth that building the SQL DB from the flat file would already

Re: [R] Good documentation about Sweave

2010-09-27 Thread statquant2
Thank you all for those great links, I will look at those. Thanks again Colin -- View this message in context: http://r.789695.n4.nabble.com/Good-documentation-about-Sweave-tp2714326p2715280.html Sent from the R help mailing list archive at Nabble.com.

[R] Good documentation about Sweave

2010-09-26 Thread statquant2
Hello, I am looking for a good and detailed documentation about Sweave... but can't find anything more that 15 pages asking Google... Any hint on that point ? Cheers Colin -- View this message in context: http://r.789695.n4.nabble.com/Good-documentation-about-Sweave-tp2714326p2714326.html

[R] efficient equivalent to read.csv / write.csv

2010-09-26 Thread statquant2
Hello everyone, I currently run R code that have to read 100 or more large csv files (= 100 Mo), and usually write csv too. My collegues and I like R very much but are a little bit ashtonished by how slow those functions are. We have looked on every argument of those functions and if specifying

Re: [R] apply union function vectorially

2010-09-25 Thread statquant2
Yes Thank you very much, NICE ONE. Do you have some interesting references about R (I do know some common books but may be you have some nice hidden books I have never heard about... ) -- View this message in context:

Re: [R] apply union function vectorially

2010-09-23 Thread statquant2
Thank you very much, this solve the problem, but more generally is there a function that allow to apply a function to a list of object, applying recursively the function to each answer... mathematically for a 2 argument function f(u,v) you would like a function g doing g(u1,u2,u3,u4,u5)

Re: [R] Problem with ggplot2 - Boxplot

2010-09-22 Thread statquant2
Hi, are you sure you have the same version R + packages version on both ? -- View this message in context: http://r.789695.n4.nabble.com/Problem-with-ggplot2-Boxplot-tp2549970p2549997.html Sent from the R help mailing list archive at Nabble.com. __

[R] apply union function vectorially

2010-09-22 Thread statquant2
Hello everybody, I have a list.array which is a list containing arrays, lets say list.array= list( c(1,2,3),c(5,6,7),c(1,4,6,7,8) ); I would like to apply the union function to those 3 vectors to get the union of the three : [1,2,3,4,5,6,7,8] I tried do.call(what=union,args=list.array) but this