[R] Contour plot
lkchan
leongkeatchan at gmail.com
Wed Feb 29 22:48:54 CET 2012
Hi, I would like to make a contour plot with the data below, x-axis= Day
(increasing order, day number is out of 365 days of a year), y-axis= Depth
(varies), and z=pH. I tried to use filled.contour function, but not sure the
proper way to ordinate my z results into a matrix with different x and y
length. After that, if I attempted to plot the data, the x and y values are
not in ascending order...so a filled contour plot cannot be made. Any help
is appreciated!
Thanks!
Leo
Day Month Depth pH
23 Jan 0 4.9
23 Jan 3 4.93
23 Jan 7 5.05
52 Feb 0 4.93
52 Feb 3 4.92
52 Feb 7 5.54
86 Mar 0 4.93
86 Mar 3 5.09
86 Mar 7 5.32
115 Apr 0 4.92
115 Apr 3 4.88
115 Apr 7 5.385
142 May 0 4.99
142 May 2 4.805
142 May 5 5.31
142 May 7 5.41
169 Jun 0 4.935
169 Jun 2 4.66
169 Jun 3 4.96
169 Jun 7 5.55
198 Jul 0 5.19
198 Jul 3 5.1
198 Jul 5 5.59
198 Jul 7 5.8
225 Aug 0 5.05
225 Aug 2 4.88
225 Aug 5 5.31
225 Aug 7 5.53
225 Sep 0 4.78
225 Sep 2 4.76
225 Sep 5 5.22
225 Sep 6 5.4
282 Oct 0 4.8
282 Oct 3 4.91
282 Oct 5 5.185
282 Oct 6 5.32
319 Nov 0 5.06
319 Nov 3 5.05
319 Nov 7 5.11
--
View this message in context: http://r.789695.n4.nabble.com/RE-Contour-plot-tp4433128p4433128.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list