Jenny Fox
2004-Dec-02 18:22 UTC
[R] image() or plotting functions or something else broken in 2.0.1 on OS X?
Hello. I just upgraded to 2.01 on Mac OS 10.3.6. I used to use the image() function in 1.9.x. Now, running the example code from the image() help page gives me the following error: > x <- y <- seq(-4*pi, 4*pi, len=27) > r <- sqrt(outer(x^2, y^2, "+")) > image(z = z <- cos(r^2)*exp(-r/6), col=gray((0:32)/32)) 2004-12-02 10:35:27.815 R[2649] *** Assertion failure in -[RDeviceView lockFocus], AppKit.subproj/NSView.m:2746 2004-12-02 10:35:27.817 R[2649] *** NSTimer discarding exception 'NSInternalInconsistencyException' (reason 'lockFocus sent to a view whose window is deferred and does not yet have a corresponding platform window') that raised during firing of timer with target 3b9a60 and selector 'runRELP:' And then R quits unexpectedly. I ran the demo(graphics) and it ran fine. But then I tried to run coplot() independently of the demo and I got the same error: > ## Tonga Trench Earthquakes > coplot(lat ~ long | depth, data = quakes) 2004-12-02 11:17:45.150 R[8541] *** Assertion failure in -[RDeviceView lockFocus], AppKit.subproj/NSView.m:2746 2004-12-02 11:17:45.152 R[8541] *** NSTimer discarding exception 'NSInternalInconsistencyException' (reason 'lockFocus sent to a view whose window is deferred and does not yet have a corresponding platform window') that raised during firing of timer with target 3b9a60 and selector 'runRELP:' I'm not sure what I'm doing wrong - a quartz window appears when I run the command, so it should in fact have a "corresponding platform window". Any advice would be appreciated. --jenny Jennifer Fox Graduate Researcher NOAA Aeronomy Laboratory Boulder, CO jfox at al.noaa.gov