[R] plot level, velocity, acceleration with one x axis

2023-05-28 Thread Spencer Graves
Hello, All: I want to plot level, velocity, and acceleration in three panels with only one x axis. The code below does this using "layout". However, I want the three plot areas to be of equal size, and this won't do that: If I stretch the plot vertically, the relative sizes of the three

Re: [R] Plotting directly to memory?

2023-05-28 Thread Jeroen Ooms
On Sun, May 28, 2023 at 1:46 PM Duncan Murdoch wrote: > > Is there a way to open a graphics device that plots entirely to an array > or raster in memory? I'd prefer it to use base graphics, but grid would > be fine if it makes a difference. > > For an explicit example, I'd like to do the

Re: [R] Plotting directly to memory?

2023-05-28 Thread Jan van der Laan
Perhaps the ragg package? That has an `agg_capture` device "that lets you access the device buffer directly from your R session." https://github.com/r-lib/ragg HTH, Jan On 28-05-2023 13:46, Duncan Murdoch wrote: Is there a way to open a graphics device that plots entirely to an array

[R] Plotting directly to memory?

2023-05-28 Thread Duncan Murdoch
Is there a way to open a graphics device that plots entirely to an array or raster in memory? I'd prefer it to use base graphics, but grid would be fine if it makes a difference. For an explicit example, I'd like to do the equivalent of this: filename <- tempfile(fileext = ".png")

Re: [R] reference generated var name in loop

2023-05-28 Thread Evan Cooch
Thanks very much - that does the trick. Many good suggestions. On 5/26/2023 12:00 PM, Greg Snow wrote: Using the `assign` function is almost always a sign that you are making things more complicated than is needed. It is better to work directly with lists, which make it much easier to set and

Re: [R-es] Error: protect(): protection stack overflow

2023-05-28 Thread Isidro Hidalgo Arellano via R-help-es
Buenos días : Quizá lo mejor en tu caso es lanzar una regresión penalizada y eliminar algunas variables...  Saludos, Isidro Hidalgo Arellano Observatorio del Mercado de Trabajo Junta de Comunidades de Castilla – La Mancha -Mensaje original- De: R-help-es En nombre de Manuel Mendoza

[R-es] Error: protect(): protection stack overflow

2023-05-28 Thread Manuel Mendoza
Muy buenas, estoy aplicando random forest a una df de 256 filas y 54973 columnas y me quedo sin memoria. He probado con randomForest y con ranger, y con los dos pasa. ¿Tenéis alguna solución para esto (que no sea comprarse un ordenador más potente:-) ?. Pude aplicar XgBoost, incluso cerca de 2000