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

2006-12-17 Thread Jean . Coursol
, don't forget to add xaxs='i', yaxs='i'... Jean Coursol -- Quoting Renaud Lancelot [EMAIL PROTECTED]: Try levelplot in package lattice instead of filled.contour: you will be able to annotate the plot using the grid package. Moreover, you can remove

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 Control-L or Shift-Control_L, it runs (but not with Control_L-Shift ??). Use xmodmap to see the current mappings from keys to modifiers. Jean Coursol On Wed, 2 Aug 2006, Franco Mendolia

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 no results. I have a large dataframe ( dim(mydata

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

[R] RecordPlot

2004-11-30 Thread Jean Coursol
understand recursive indexing. With not modified saveP, saveP[[c(1,2)]] [[1]] .Primitive(plot.window) [[2]] [1] 1 10 [[3]] [1] 1 10 [[4]] [1] [[5]] [1] NA # OK saveP[[c(1,2,2)]] Error: recursive indexing failed at level 2 # why not [1] 1 10 ?? Jean Coursol

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

2004-06-24 Thread Jean Coursol
- horner(z) nchar(zh) [1] 2404 parse(text = zh) # = Segmentation 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