[R] annotating a filled contours plot with a grid of points
Dear R-help members, I am trying to plot annotate a filled contours plot (with filled.contour) with a grid of points. I have read ways of annotating it with individual points but not with grids in another matrix. Any ideas? Thank you very much. Dario ___ Dario Martin-Benito CIFOR-INIA Dpto. Sistemas y Recursos Forestales Ctra. La Coruña, Km. 7.5 E-28040 Madrid (Spain ) Tel.: +34 91 347 1461 e-mail: dmar...@inia.es /// dmartinben...@gmail.com http://dmartinbenito.googlepages.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] annotating a filled contours plot with a grid of points
Dario, Checkout the 'plot.axes' argument to 'filled.contour'. Michael Grant --- On Fri, 2/6/09, Dario Martin-Benito dmar...@inia.es wrote: From: Dario Martin-Benito dmar...@inia.es Subject: [R] annotating a filled contours plot with a grid of points To: r-help@r-project.org Date: Friday, February 6, 2009, 8:23 AM Dear R-help members, I am trying to plot annotate a filled contours plot (with filled.contour) with a grid of points. I have read ways of annotating it with individual points but not with grids in another matrix. Any ideas? Thank you very much. Dario ___ Dario Martin-Benito CIFOR-INIA Dpto. Sistemas y Recursos Forestales Ctra. La Coruña, Km. 7.5 E-28040 Madrid (Spain ) Tel.: +34 91 347 1461 e-mail: dmar...@inia.es /// dmartinben...@gmail.com http://dmartinbenito.googlepages.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] annotating a filled contours plot with a grid of points
Try this example: mygrid - expand.grid(x=seq(0,1, by=0.1), y=seq(0,1, by=0.1)) filled.contour(volcano, color = terrain.colors, asp = 1, plot.axes={ axis(1); axis(2); points(mygrid, cex=0.5, pch=19)}) Cheers, Marcelino From: Dario Martin-Benito dmartin at inia.es Subject: [R] annotating a filled contours plot with a grid of points To: r-help at r-project.org Date: Friday, February 6, 2009, 8:23 AM Dear R-help members, I am trying to plot annotate a filled contours plot (with filled.contour) with a grid of points. I have read ways of annotating it with individual points but not with grids in another matrix. Any ideas? Thank you very much. Dario ___ Dario Martin-Benito CIFOR-INIA Dpto. Sistemas y Recursos Forestales Ctra. La Coruña, Km. 7.5 E-28040 Madrid (Spain ) Tel.: +34 91 347 1461 e-mail: dmartin at inia.es /// dmartinbenito at gmail.com http://dmartinbenito.googlepages.comhttp://dmartinbenito.googlepages.com Marcelino de la Cruz Rot Departamento de Biología Vegetal E.U.T.I. Agrícola Universidad Politécnica de Madrid 28040-Madrid Tel.: 91 336 54 35 Fax: 91 336 56 56 marcelino.delac...@upm.es _ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.