Dario Martin-Benito
2009-Feb-06 13:23 UTC
[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: dmartin@inia.es /// dmartinbenito@gmail.com http://dmartinbenito.googlepages.com [[alternative HTML version deleted]]
Michael Grant
2009-Feb-06 13:38 UTC
[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 <dmartin at inia.es> wrote:> 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.com > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Marcelino de la Cruz
2009-Feb-06 19:07 UTC
[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.com>http://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.delacruz@upm.es
_________________________________
[[alternative HTML version deleted]]