Re: [R-sig-Geo] plot raster: how to eliminate surrounding white space?

2013-08-27 Thread Oscar Perpiñan
Hello, I think this question asked for the same problem: http://stackoverflow.com/questions/17214469/r-crop-raster-data-and-set-axis-limits My proposal was to use raster::spplot or rasterVis::levelplot. Best, Oscar Oscar Perpiñán Lamigueiro Grupo de Sistemas Fotovoltaicos (IES-UPM) Dpto. Ingeni

Re: [R-sig-Geo] plot raster: how to eliminate surrounding white space?

2013-08-27 Thread Agustin Lobo
Michael, On Tue, Aug 27, 2013 at 3:37 PM, Michael Sumner wrote: > I don't get what you mean by "rectangles are closer", but maybe modify > the aspect ratio? > plot(a,axes=FALSE,legend=FALSE, asp = 0.2) No, that distorts the image. The plot of the actual image is correct. What I want is to reduce

[R-sig-Geo] Thin-plate splines query

2013-08-27 Thread Dominic Roye
Greetings, R helpers, I have been using the Tps() function in the fields package to model response surfaces for some residuals data. But i don´t know how i can get more resolution and fill all the shape area? I hope someone can help me. Thank you, Dominic outresi <- Tps(x=as.matrix(ana),Y=re

Re: [R-sig-Geo] plot raster: how to eliminate surrounding white space?

2013-08-27 Thread Michael Sumner
I don't get what you mean by "rectangles are closer", but maybe modify the aspect ratio? plot(a,axes=FALSE,legend=FALSE, asp = 0.2) Otherwise, you can control the margins around each plot directly with a bit of mixing old-school and new: par(mar = c(0.1, 0.1, 0.1, 0.1), mfrow = c(2,2)) for (i in 1

[R-sig-Geo] plot raster: how to eliminate surrounding white space?

2013-08-27 Thread Agustin Lobo
I have raster images with many more rows than columns, i.e require(raster) a <- raster(matrix(200,ncol=256,nrow=3171)) extent(a) <- c(0,256,0,3177) and get too much blank space at plotting: plot(a,axes=FALSE,legend=FALSE) in particular if I want to display several bands in the same plot: a <- st

Re: [R-sig-Geo] Import custom projection in R

2013-08-27 Thread Roger Bivand
On Tue, 27 Aug 2013, Pan wrote: Dear all, I'm quite new to spatial data processing in R and I'm getting entangled in projection systems, I would appreciate your support to find a solution. I need to import my custom projection in R (my.proj), create projected spatial objects (I usedSpatialPo

Re: [R-sig-Geo] how to use levelplot() with a geographic projection

2013-08-27 Thread Oscar Perpiñan
Hi, Following the advice from Tom, here you will find an example: http://oscarperpinan.github.io/rastervis/FAQ.html#sec-7 Best, Oscar. [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.

Re: [R-sig-Geo] Error with STFDF

2013-08-27 Thread Benedikt Gräler
Dear Ziggy, the spatio-temporal sum-metric variogram model is the only one that is currently also implemented for the STSDF classes. You should be able to coerce your STIDF to a STSDF using as(). In the STSDF case ("S" meaning sparse), the space and time instances are stored once and an index rela