Hi,
What is the result of:
contourplot(Y~X1+X2,data=pr2)
HTH,
Pascal
Le 13/03/22 8:57, Steven LeBlanc a ?crit :> Greets,
>
> I'm using a data frame that looks like:
>> head(pr2)
> X1 X2 X3 X4 Y fit res
> 1 44 33.2 5 30 41.2 39.22201 1.977991
> 2 43 33.8 4 41 31.7 38.48476 -6.784761
> 3 48 40.6 3 38 39.4 44.78278 -5.382783
> 4 52 39.2 7 48 57.5 51.48134 6.018656
> 5 71 45.5 11 53 74.8 68.25585 6.544153
> 6 44 37.5 9 65 59.8 53.27743 6.522569
>
> Along with the command:
>> contourplot(Y~X1*X2,data=pr2)
>
> But I get a blank plot. I thought it might be because the data were
unsorted or sparse, so I made another ordered data frame as follows:
>
>> head(new)
> X1 X2 X3 X4 resp
> 1 1 1 1 1 -10.810406
> 2 2 2 2 2 -7.657712
> 3 3 3 3 3 -4.505018
> 4 4 4 4 4 -1.352323
> 5 5 5 5 5 1.800371
> 6 6 6 6 6 4.953065
>
> But the result is the same. Any idea why this does not work?
>
> Best Regards,
> Steven
>
> [[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.
>