Re: [R] plot contour map for irregular data points

2007-09-13 Thread Andre Jung
Yes, contourplot() takes irregular spaced values, but you need a regular grid to project the data on to. grid <- expand.grid(x=x,y=y); contourplot(z~x*y,grid,cuts=50); This gives me a plot with little coloured areas around my datapoints only. A better way for me was to library(akima); data.int

[R] plot contour map for irregular data points

2007-09-12 Thread Andre Jung
Hello, I'm dealing with the following problem: I have a table with x and y coordinates and corresponding values of a mineral concentration, let's call it z. Can someone provide me a short step-by-step manual for the steps necessary to get a contour map? How to sort and interpolate my matrix