Re: [R-sig-Geo] Transportation Network Shapefile into a Raster

2013-07-19 Thread Thiemo Fetzer
Dear Robert, yes you are right -- pictures can be misleading; I have found the missing pixels. Thanks a lot for this, best Thiemo Thiemo Fetzer London School of Economics STICERD Houghton Street WC2A 2AE London United Kingdom office: 32L, 3.01 D tel: +44 7411 566845 skype: thiemo.fetze

Re: [R-sig-Geo] Transportation Network Shapefile into a Raster

2013-07-18 Thread Robert J. Hijmans
Thiemo, I think the plot does not show all the pixels. Simpler script: tempr <- raster(USA.highway) dim(tempr) <- c(4480, 2080) USA.highwayraster <- rasterize(USA.highway, tempr, progress='text') # high resolution plot (but how many pixels does your screen have?) plot(USA.highwayraster, maxpixels

[R-sig-Geo] Transportation Network Shapefile into a Raster

2013-07-18 Thread Thiemo Fetzer
Dear all, I have another question or problem -- this time it is related to the transformation of a Spatial Lines shapefile into a raster. Let me describe my problem: I want to construct a measure of travel distance from A<->B; I have obtained a shapefile of the highway network of the US; in or