Hi Marna,
Isn't the conventional way to visualize depth as shades of blue?

library(plotrix)
depth.col<-color.scale(dat1$depth,extremes=c("lightblue",blue"))

Then color the lon/lat rectangles with depth.col

Jim



On Wed, Oct 12, 2016 at 7:49 PM, Marna Wagley <marna.wag...@gmail.com> wrote:
> Hi R Users,
> Is it possible to visualize river flow in  3D (latitude, longitude with
> respect to depth)?
> The example of my data looks like. Any suggestions?
>
>> dat1
>     long lat depth flow
> 1 1015.9 857  1.00 1.50
> 2 1015.9 857  1.25 1.23
> 3 1015.9 857  0.50 2.00
> 4 1015.9 858  0.10 1.95
> 5 1015.9 858  0.20 1.50
> 6 1025.0 858  0.30 1.20
> 7 1025.0 858  0.40 0.50
> 8 1025.0 858  0.35 0.70
> 9 1025.0 858  0.24 1.20
>
> Thanks for your help.
> thanks
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to