On 24/01/2008 8:59 AM, threshold wrote:> Hi, there is following issue, which I encounter when doing data analysis.
Say
> we have data in form of the matrix x:
>
>> x
> [,1] [,2] [,3]
> [1,] 0.1 4 10
> [2,] 0.2 5 11
> [3,] 0.1 5 12
> [4,] 0.1 6 13
> [5,] 0.2 4 14
> [6,] 0.3 5 16
>
> now I want to do surface plot of x[,3] with respect to axes OX:x[,1] and
OY:
> x[,2] in ascending orders of course.
How do you want to make a surface out of x[,3]? You've got 6 points.
There are lots of ways to make a surface out of those, but you haven't
said which one you want to use.
The interp() function from the akima package might work, but you don't
have much data for it to work with.
Duncan Murdoch