Re: [R] Draw a circle on a filled.contour() plot

2006-12-17 Thread Jean . Coursol
"")) filled.next(symbols(0.62,0.0,circles=c(2.5),add=TRUE,inches=FALSE)) With plot function in filled.next, don't forget to add xaxs='i', yaxs='i'... Jean Coursol -- Quoting Renaud Lancelot <[EMAIL PROTECTED]>:

Re: [R] tcl/tk bind destroy event

2006-08-03 Thread Jean Coursol
Perhaps Destroy key is unknown by Tcl; it is not in the Event modifiers table in Welch Book... But try with or , it runs (but not with ??). Use xmodmap to see the current mappings from keys to modifiers. Jean Coursol On Wed, 2 Aug 2006, Franco Mendolia wrote: > Hello! > > I want to

Re: [R] splitting and saving a large dataframe

2006-04-30 Thread Jean . Coursol
for( i in levels(mydata$myfactor) ) { d = mydata[mydata$myfactor==i,] write.table(d, paste('d', i, '.data', sep='') ) } Jean Coursol Quoting Dimitri Szerman <[EMAIL PROTECTED]>: > Hi, > > I searched for this in the mailing list, but found n

Re: [R] locator() via tcltk

2005-06-04 Thread Jean . Coursol
To illustrate (?) Professor Ripley comments, I send you an example (stolen in various places...). Note the tkwm.resizable(tt, 0, 0) directive that prevents the window rescaling (if not,the coordinates will not be correct). # # Getting the mouse coords with TclTk # # Two possibilities: tkrplot pa

[R] RecordPlot

2004-11-30 Thread Jean Coursol
But: > s1 <- saveP[[1]] > s1[[2]][[2]] <- c(4,6) > saveP[1] <- list(s1) > saveP # zoom is OK Also, I don't understand recursive indexing. With not modified saveP, > saveP[[c(1,2)]] [[1]] .Primitive("plot.window") [[2]] [1] 1 10 [[3]] [1] 1 10 [[4]] [

[R] Danish characters i R2.0.1 vs R1.9.1 under winXP

2004-11-25 Thread Jean Coursol
'fr_FR') [1] "fr_FR" > élément <- "é" # OK for object name > élément [1] "é"# OK for display Another solution: export LC_ALL='fr_FR' # before loading R and then Sys.setlocale becomes useless. Jean

[R] Bug in parse; memory access test forgotten ?

2004-06-24 Thread Jean Coursol
on fault (it ran one time !!!) # The R solution (VR S programming p 95) as.function.polynomial <- function(p) { function(x) { v <- 0; for (a in rev(p)) v <- a + x*v; v } } # is running perfectly... Jean Coursol __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html