Skip to content

interior and exterior colors of a map

2 messages · dxc13, David Winsemius

#
Hi useR's,
I have an image plot I want to overlay a map of the United States on, via
map('usa').  The image is basically a large rectangular of various colors. 
When I overlay the United States map, the full rectangle of the image plot
is visible, but I only want to display the image WITHIN the United States
boundary.
Does anyone know a way to do this?
Thanks in advance,

dxc13
#
Paul Murrell offered some worked examples of using paths from vector  
graphics in the articles and talks he has given for the grImport  
package:

http://www.stat.auckland.ac.nz/~paul/Talks/import.pdf

http://www.jstatsoft.org/v30/i04

http://cran.r-project.org/web/packages/grImport/grImport.pdf