[R] plot xyz data in 2D

David Winsemius
2010-09-21T14:53:57Z

On Sep 21, 2010, at 9:49 AM, Jacob Oosterwijk wrote:

> Hello,
>
>
>
> I want to make an 2D plot of .xyz data. So plot on x-axis and y-axis
> and
> use a color scale for the z.
>
> For every x-location along a cross section of the soil at several
> depths
> a resistivity must be displayed. This must result in a picture/graph
> which shows the resistivity for that cross section. The depths differ
> for each x-location.
>
>
>
> How can I do that?
>

?image

>
>
> In fact it is an cross section with the following format (simple
> example)

Put your data in an R object and then present dput(object), or offer a
web link to a text file

Don't expect us to fix up mangled data the you ran through HTML.

--
David.


>
>
>
> X
>
> Depth
>
> Resistivity
>
> -3
>
> 0
>
> 1
>
> -2
>
> -0.25
>
> 2
>
> -2
>
> 0
>
> 1
>
> -1
>
> -0.5
>
> 3
>
> -1
>
> -0.25
>
> 2
>
> -1
>
> 0
>
> 1
>
> 0
>
> -0.75
>
> 2
>
> 0
>
> -0.5
>
> 3
>
> 0
>
> -0.25
>
> 2
>
> 0
>
> 0
>
> 1
>
> 1
>
> -0.5
>
> 3
>
> 1
>
> -0.25
>
> 2
>
> 1
>
> 0
>
> 1
>
> 2
>
> -0.25
>
> 2
>
> 2
>
> 0
>
> 2
>
> 3
>
> 0
>
> 2
>
>
>
>
>
> Acacia Water
>
> Jan van Beaumontstraat 1
>
> 2805 RN  Gouda
>
> The Netherlands
>
> Tel. office: +31(0) 182686424
>
> Tel. mobile: +31(0) 6 12143599
>
> Fax: +31(0)182686239
>
> Email: jacob.oosterwijk at acaciawater.com <mailto:jacob at
acaciawater.com>
>
> Website: www.acaciawater.com <http://www.acaciawater.com/>
>
>
>
>
>
> Acacia Water
>
> Jan van Beaumontstraat 1
>
> 2805 RN  Gouda
>
> The Netherlands
>
> Tel. office: +31(0) 182686424
>
> Tel. mobile: +31(0) 6 12143599
>
> Fax: +31(0)182686239
>
> Email: jacob.oosterwijk at acaciawater.com <mailto:jacob at
acaciawater.com>
>
> Website: www.acaciawater.com <http://www.acaciawater.com/>
>
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.

David Winsemius, MD
West Hartford, CT