Dear Rpy'ers,
I am using the "filled.contour"-function to produce a contour map. I
need to draw vertical and horisontal lines within this map related to
its coordinate system. The problem is when the legend is drawn, it
destroys the original coorinatesystem as described in the R-manual.
The manual suggest a workaround:
filled.contour(x = 1:20, y = 1:20, z = b, plot.axes={ axis(1);
axis(2); points(10,10) })

Using this in rpy results in the following error:
plot.new has not been called yet

Any suggestions are highly appreciated.

Attached is a copy of my Rpy code.

Best regards,
LarsS
---------------------------------
r.pdf(filename,onefile=r.TRUE, width = 7.8, height = 7,)
r.Lab_palette = r.colorRampPalette(r.c("blue", "white", "red"), space = "Lab");

r.filled_contour(x=x,
                     y=y,
                     z=matrix,
                     xlab='xlab',
                     ylab='ylab',
                     xlim=r.c(1,n), ylim=r.c(1,n),
                     col = r.Lab_palette(20),
                     levels = r.pretty( r.c(-1,1), 20),
                     nlevels = 20,
                     asp = 1,
                     main="Contour map",
                     plot_axes= [r.axis(1),r.axis(2), r.points(10,10)] )

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to