[R] playwith error message

Liviu Andronic landronimirc at gmail.com
Tue Feb 2 00:48:59 CET 2010


On 2/1/10, Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote:
>  efaApp <- function(data, ...)
>  {
>     playwith (myplot(data[,8:9]),
>             click.mode = "Brush",
>             )
>  }
>
This does work if you use plot() directly:
efaApp <- function(data, ...)
{
   playwith (plot(data[,1:2]),
           click.mode = "Brush",
           )
}


>  efaApp(as.data.frame(Boston))
>
>  My plot routines even return invisibly a list itself.
>
My guess is that by passing through a custom function you generate
output that playwith does not understand. One way to work around is:

myplot <- function(x, ...) {
 plot(x)
}

Allowing for other options seems to make playwith happier.
Liviu


>  >>  Under linux my R program simply continues, but under Windows it stops.
>
>
> I just saw that under Windows my program continues as well, just the
>  GTK+ window was minimized.
>
>  Thanks Sigbert
>


-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail



More information about the R-help mailing list