[R] interior and exterior colors of a map

2009-11-25 Thread dxc13

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
-- 
View this message in context: 
http://old.nabble.com/interior-and-exterior-colors-of-a-map-tp26507134p26507134.html
Sent from the R help mailing list archive at Nabble.com.

__
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] interior and exterior colors of a map

2009-11-25 Thread David Winsemius
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

--
David

On Nov 24, 2009, at 10:45 PM, dxc13 wrote:



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
--
View this message in context: 
http://old.nabble.com/interior-and-exterior-colors-of-a-map-tp26507134p26507134.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


David Winsemius, MD
Heritage Laboratories
West Hartford, CT

__
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.