Dear R users,

I want to do a fitted.contour plot of selected columns of a dataframe M with
M$AM and M$Irradiance as x and y axes respectively. The level of the contour
shall be determined by M$PR.

Some words on my data first. Dataframe M looks like:

head(M$Irradiance)
[1] 293 350 412 419 477 509

head(M$AM)
[1] 2.407 2.161 1.964 1.805 1.673 1.563

head(M$PR)
[1] 70.102 72.600 75.097 80.167 79.644 82.633

To create a grid, I used "interp" from the "akima" package up until now. As
mentioned in the header, I run into problems when trying the following:

grid <- akima::interp(M$AM,M$Irradiance,M$PR, duplicate="mean");
Error in interp.old(x, y, z, xo = xo, yo = yo, ncp = 0, extrap = extrap,  :
  scales of x and y are too dissimilar

M$Irradiance constists mostly of 3 digit integers, whereas M$AM of decimal
numbers.

Now, is there another function like interp that can handle this? I could not
find a clue in the doc. Should I look deeper into the doc? Maybe transform
the y axis?

Additionally, I was told in a previous post to include a working example. I
do not know how to do that properly. Shall I post code to reproduce a
similar data frame or even attach my csv file?

Best Regards,
Michael Bach

	[[alternative HTML version deleted]]

