[R] barplot and map overlay

From: Héctor Villalobos <hvillalo_at_ipn.mx>
Date: Mon, 11 Jun 2007 18:45:17 -0600


Hi,

I wonder if it is possible with the graphics package to overlay one or several plots (barplots, for example) over a map. Data for the map is in a data frame with the latitude and longitude coordinates, and then:

> plot(map$long, map$lat, type ="l")

produces the map. I want to put each barplot in specific locations on the map, namely at the center of "statistical squares".

I´ve seen an example in Paul Murrell´s "R Graphics" book that seems appropriate (grid package), but a bit complicated.

Thanks a lot for any advice.

Héctor

--
Héctor Villalobos <hvillalo_at_ipn.mx>
 CICIMAR - IPN
 A.P. 592. Col. Centro
 La Paz, Baja California Sur, MÉXICO. 23000
 Tels. (+52 612) 122 53 44; 123 46 58; 123 47 34  ext. 2425
 Fax.  (+52 612) 122 53 22


	[[alternative HTML version deleted]]


______________________________________________ R-help_at_stat.math.ethz.ch 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.

Received on Tue 12 Jun 2007 - 00:52:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Jun 2007 - 03:31:53 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.