Re: [R-sig-Geo] Distances from points to coast do not make sense.

2014-09-17 Thread Agus Camacho
Thanks again Robert, In case it is of help for any body, after trying several combinations, the fastest solution I got to calculate minimum distances to coast was: require(PBSmapping) wcoastline <- importShapefile("GSHHS_c_L1.shp") w=as.matrix(wcoastline[,c('X','Y')]) # You will need x1, an obj

[R-sig-Geo] modify legend on levelplot

2014-09-17 Thread Tyler Frazier
Hello, I would like to modify my legend on a rasterVis levelplot() but can�t figure it out. I use p <- levelplot(x_rat, main = �title", margin = FALSE, xlab = NULL, ylab = NULL, auto.key=list(space="top", columns=3), col.regions=c(�gray','darkgreen','tomato4','yellow','purple','blue','azure2'

Re: [R-sig-Geo] ssplot freezes R [was] really slow plot of Portugal

2014-09-17 Thread Virgilio Gómez-Rubio
Hi, This takes a few second on my laptop with Ubuntu. So it may be an issue with your plotting device. Have you tried to plot it in a PDF or PNG? Best wishes, Virgilio El mié, 17-09-2014 a las 10:31 +0200, Agustin Diez Castillo escribió: > Hi Jon, > This explain why it takes so long for drawing

Re: [R-sig-Geo] plotKML organizing folders

2014-09-17 Thread Tomislav Hengl
I've added an extra argument called "subfolder.name" (http://plotkml.r-forge.r-project.org/layer.SpatialPoints.html) so you can rename your sub-folders e.g.: library(plotKML) library(sp) demo(meuse, echo=FALSE) kml(meuse, colour=zinc, subfolder.name="Zinc in ppm") system("open meuse.kml") To

Re: [R-sig-Geo] ssplot freezes R [was] really slow plot of Portugal

2014-09-17 Thread Jon Skoien
Hi Agustin, I didn't try all your commands last time, most plotting run faster for me (Windows 7, R 3.1-1, sp 1.0-15, rgdal 0.8-16). If you call spplot without selecting one of the features, it might be rather slow or freeze as they have 70 columns => 70 maps. Do you really want to plot all th

[R-sig-Geo] ssplot freezes R [was] really slow plot of Portugal

2014-09-17 Thread Agustin Diez Castillo
Hi Jon, This explain why it takes so long for drawing but not why R is freezing with ssplot. Did you test this spplot in a no Mac machine? In my machine when working it takes 21000 times more to draw Portugal instead of the expected 126. Thanks On 16Sep, 2014, at 3:23 PM, Jon Skoien wrote: > Hi