[R] plotting convex hull for 3D

Ben Bolker bbolker at gmail.com
Mon Sep 20 04:09:58 CEST 2010


cassie jones <cassiejones26 <at> gmail.com> writes:

> I have a 3 dimensional data and I need to plot a convex hull to it. I have
> done it for 2 dimensional case using chull command in R. But I think it does
> not work for more than 2 dimension.
> Can anyone help me with this? Is there anyway to plot the convex hull for
> more than 2 D case?

library(sos)
findFn("convex hull 3D")

 leads to the 'convhulln' function in the 'geometry' package;
the examples there show how to use the rgl package to plot
the results.



More information about the R-help mailing list