[R] 3D Plot of Convex hull

David Winsemius dwinsemius at comcast.net
Tue Nov 19 18:14:34 CET 2013


On Nov 18, 2013, at 8:01 PM, wwreith wrote:

> I have a data set in which I am trying to plot a convex hull in 3 dim. Below
> is a subset of the points I would use. Columns 2,3,4 are my x,y,z
> coordinates. I found some ways to plot 2D convext hulls or find a convex
> hull for higher dimensions, but not how to plot the data. 

Doing a simple search with: 3d convex hull r-project .... I find the geometry package supports construction of multidimensional convex hulls and construction of tessalations. That package also suggsets the rgl package, which makes me think that 3d tessellations may be suitable for input to the rgl::surface3d function.

-- 
David.
> 
> I have have attached an example of what I am shooting for in my plot. 
> 
> Thanks for the help!
> 
> 6466574 37 225 27  53.69230             5
> 6466575 38 225 27  47.54898             5
> 6466576 39 225 27  58.71439             5
> 6466577 40 225 27  67.40830             5
> 6466578 41 225 27  64.40646             5
> 6466579 42 225 27  71.59792             5
> 6466580 43 225 27  66.10197             5
> 6466581 44 225 27  61.53381             5
> 6466582 45 225 27  69.49900             5
> 6466583 46 225 27  93.91280             5
> 6466800 31 226 27 102.78361             5
> 6466801 32 226 27  69.58787             5
> 6466802 33 226 27  67.53348             5
> 6466803 34 226 27  66.83624             5
> 6466804 35 226 27  52.74981             5
> 6466805 36 226 27  58.10865             5
> 6466806 37 226 27  64.29259             5
> 6466807 38 226 27  55.37983             5
> 6466808 39 226 27  58.48212             5
> 6466809 40 226 27  66.21062             5
> 6466810 41 226 27  58.39149             5
> 6466811 42 226 27  60.40741             5
> 6466812 43 226 27  60.95507             5
> 6466813 44 226 27  64.16653             5
> 6466814 45 226 27  62.48255             5
> 6466815 46 226 27  74.37065             5
> 6466816 47 226 27 100.51262             5 
> 
> <http://r.789695.n4.nabble.com/file/n4680712/turbo_ch3d_lung3.jpg> 
> 
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/3D-Plot-of-Convex-hull-tp4680712.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list