Re: [R] Inserting color into an irregular grid comprised of polygons

2014-01-16 Thread Jim Lemon
On 01/17/2014 05:12 AM, Morway, Eric wrote: As a follow up to this thread started nearly a month ago, I'm in need of help sorting out the R code that will create a log-scale legend in the call to "image.plot" below. As the last line of the code provided below shows, I attempted to force the labe

Re: [R] Inserting color into an irregular grid comprised of polygons

2014-01-16 Thread Morway, Eric
As a follow up to this thread started nearly a month ago, I'm in need of help sorting out the R code that will create a log-scale legend in the call to "image.plot" below. As the last line of the code provided below shows, I attempted to force the labeling through the argument "legend.lab", to no

Re: [R] Inserting color into an irregular grid comprised of polygons

2013-12-23 Thread David Carlson
u.edu Cc: R mailing list Subject: Re: [R] Inserting color into an irregular grid comprised of polygons Thanks David, Instead of using terrain.colors or heat.colors, I went with: library(colorRamps) cv <- matrix(as.integer(cut(vals2, breaks=100)), dim(vals2)) pal <- blue2green2r

Re: [R] Inserting color into an irregular grid comprised of polygons

2013-12-23 Thread Morway, Eric
Thanks David, Instead of using terrain.colors or heat.colors, I went with: library(colorRamps) cv <- matrix(as.integer(cut(vals2, breaks=100)), dim(vals2)) pal <- blue2green2red(100) #a function from colorRamps Do you happen to have any clever ideas for a legend? I could play around with a ser

Re: [R] Inserting color into an irregular grid comprised of polygons

2013-12-23 Thread David Carlson
ct.org] On Behalf Of Morway, Eric Sent: Monday, December 23, 2013 12:11 PM To: R mailing list Subject: [R] Inserting color into an irregular grid comprised of polygons useRs, The example code below is an attempt to plot some spatial data that is associated with an irregularly spaced grid. Th

[R] Inserting color into an irregular grid comprised of polygons

2013-12-23 Thread Morway, Eric
useRs, The example code below is an attempt to plot some spatial data that is associated with an irregularly spaced grid. The last thing I hope to do with this example is assign the color of each polygon generated in the nested for loop based on the value contained in "vals". The R code I'm seek