[R] Contour plot for arbitrary (x,y,z)
Petr Pikal
petr.pikal at precheza.cz
Thu Aug 14 08:55:49 CEST 2003
Hi
On 13 Aug 2003 at 12:25, Ronnen Levinson wrote:
> Hello.
>
> Is there an easy-to-use contour plot function analogous to
> scatterplot3d that can draw handle a dataset of arbitrary (x,y,z)
> triplets? That is, say x, y, and z are each measured quanties, and
> exhibit neither order nor regularity.
maybe
library(akima)
#provided you do not have missing data
contour(interp(x,y,z))
if some of your data are missing, you have to filter it out e.g. by complete.cases()
>
> I looked at the lattice package function "contourplot" but it seems
> complicated, and it's not clear from the documentation whether it can
> handle arbitrary (x,y) values. I'm looking for something like the base
> package "contour" function that does not make any assumptions about
> (x,y,z).
>
> Thanks,
>
> Ronnen.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
CheersPetr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz
More information about the R-help
mailing list