Re: [R] tcl/tk problem with tklistbox,the character and Rcmdr.

2012-11-20 Thread Yves Reecht
Hi Vincent, This is probably because Rcmdr redefine the tclvalue command (check the message frame of the Rcmdr window). You can try: tcltk::tclvalue(tkget(levels.list2,4)) HTH, Yves Le 20/11/2012 11:25, vincent guyader a écrit : I everyone, i have a little problem with tklistbox,the

Re: [R] Expression: +/-sigma

2011-07-27 Thread Yves REECHT
Hi, You may try something like: plot(rnorm(10), rnorm(10), main=expression( %+-% 2*sigma)) HTH, Yves Le 27/07/2011 14:57, ogbos okike a écrit : Dear List, I am trying to label a plot with the symbol +/- sigma. Using something like - expression (2*sigma) gives me the symbol 2ó.

Re: [R] Console output

2011-02-21 Thread Yves REECHT
Hi, You may try invisible(sapply(1:10, print)) Yves Le 21/02/2011 11:21, Antje Niederlein a écrit : Hi there, I though there has been a possibility to force the output on the console with one element per line. Instead of this: 1:10 [1] 1 2 3 4 5 6 7 8 9 10 something

Re: [R] How to compute yaxp and usr without plotting ?

2011-02-15 Thread Yves REECHT
Thank you very much Greg, This was helpful. With yaxs=r I can easily obtain the Y-axis labels with : rg - range(y) + 0.04 * diff(range(y)) * c(-1, 1) pt - pretty(y) axTicks(side=2, usr=c(0, 1, rg), axp=c(min(pt), max(pt[pt = max(rg)]),

[R] How to compute yaxp and usr without plotting ?

2011-02-11 Thread Yves REECHT
Dear all, I'd like to know how I could compute the parameters yaxp and (the y components of) usr without having to plot the data first. Note that ylim is /a priori/ fixed. The aim is to automatically adjust the parameter mgp without having to make the plot twice. Then, with yaxp and usr

[R] force apply not to drop the dimensions of FUN results ?

2010-11-10 Thread Yves REECHT
? (unfortunately my function seems not suitable for a vectorization using sweep) Alternatively, a method to recover the wished array dimensions afterward would be also acceptable. Many thanks in advance. Yves -- --- Yves REECHT Dpt STH (Sciences

Re: [R] force apply not to drop the dimensions of FUN results ?

2010-11-10 Thread Yves . Reecht
Thank you very much Claudia, That (the first form) works perfectly. Easily made generic using head and tail on the dim attribute. All the best, Yves Claudia Beleites cbelei...@units.it a écrit : Dear Yves, You may not need to do more than set the dim attribute correctly: dim (test) - c

Re: [R] calculate area between intersecting polygons

2010-10-26 Thread Yves Reecht
Dear Jonas, I already had to deal with such an issue. Your can use the joinPolys function from the package PBSmapping, with INT as operation. The maptools package has functions SpatialPolygons2PolySet and PolySet2SpatialPolygons to switch between formats suitable for sp or PBSmapping. Hope this