[R-sig-Geo] DEM plot3D and overlay an aerial image

MacQueen, Don macqueen1 at llnl.gov
Mon Oct 3 21:50:30 CEST 2016


Have you tried
  plotRGB(gruissan)
?

plotRGB is in the raster package.

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 10/3/16, 2:38 AM, "R-sig-Geo on behalf of Mathieu Rajerison"
<r-sig-geo-bounces at r-project.org on behalf of mathieu.rajerison at gmail.com>
wrote:

>Hi R-List,
>
>
>I have a DEM on one hand, and on the other hand, I have an RGB aerial
>image
>
>I tried rasterVis and plot3D function, but I didn't find how to use the
>colors of my RGB aerial image.
>
>For the moment, I used rgl instead although it doesn't seem very
>appropriate for georeferenced data..
>
>Here's the RGL code :
>
>gruissan =
>stack("../MAISON/DATA/geo/raster/bdortho_marseille/marseille.tif")
>
>r = values(gruissan[[1]])/255
>g = values(gruissan[[2]])/255
>b = values(gruissan[[3]])/255
>col = rgb(r, g, b)
>
>library(rgl)
>persp3d(1:nrow(mnt), 1:ncol(mnt), values(mnt), col=col)
>
>Best,
>
>Mathieu
>
>
>>
>	[[alternative HTML version deleted]]
>
>_______________________________________________
>R-sig-Geo mailing list
>R-sig-Geo at r-project.org
>https://stat.ethz.ch/mailman/listinfo/r-sig-geo



More information about the R-sig-Geo mailing list