I have a data frame with XYZ, coordinates, and several other vectors e.g. amplitude of signal etc. see below head(data)
Point back.compat point.index back.compat2 x y z
1 P 0 3 0 27.0517 -43.13530 196.112
2 P 0 4 0 33.6436 -31.92700 193.627
3 P 0 5 0 37.8914 -22.59280 191.426
4 P 0 6 0 41.4369 -13.01710 188.994
5 P 0 7 0 44.8093 -3.40489 186.449
6 P 0 8 0 24.2484 -34.95670 202.826
alpha.of.point beta.of.point gamma.of.point uni bi lat imped
1 0.534786 0.824073 -0.186834 5.997 5.028 3 -10000
2 0.449660 0.871231 -0.196880 7.206 1.671 -3 -10000
3 0.365726 0.903938 -0.221677 7.443 1.311 -3 -10000
4 0.324984 0.914938 -0.239318 8.244 5.901 8 -10000
5 0.320455 0.916345 -0.240041 8.589 1.809 14 -10000
6 0.720051 0.667935 -0.188118 6.954 1.269 -1 -10000
X.Point.Type... Label.ID point.size point.label label.colour cath.id
1 0 -1 1 A 0 587
2 0 -1 1 A 0 587
3 0 -1 1 A 0 587
4 0 -1 1 A 0 587
5 0 -1 1 A 0 587
6 0 -1 1 A 0 587
is.te v
1 0 -10000
2 0 -10000
3 0 -10000
4 0 -10000
5 0 -10000
i use
tc.xyz <- delaunayn(xyz, options="PG")
to make the mesh for xyz
then
open3d()
tetramesh(tc.xyz, xyz, alpha=1, col=2)
to plot
but now i want the colour scaled as a contour of "bi" in my original dataframe. how do i do that?