I'd like 3Dplot a list of data with 4
columns (these are mesh outputs):
x1 y1 z1 Dose1
x2 y2 z2 Dose2
.
.
.
which command i should to use??
Like I said in the comments, BubbleChart3D
is meant to do what ListPointPlot3D
is doing in this case. For example:
d = RandomReal[{0, 1}, {100, 4}];
BubbleChart3D[d]
In this first example, the volume of the bubbles is proportional to the fourth element. To represent the fourth dimension with colors, we can do this:
BubbleChart3D[d,
BubbleSizes -> {0.02, 0.02},
ColorFunction -> (ColorData["TemperatureMap"][#4] &)]
Quick & dirty, the color represents the fourth coordinate :
d = RandomReal[{0, 1}, {100, 4}];
Block[{i = 1},
ListPointPlot3D[d[[All, ;; 3]],
ColorFunction -> Function[{x, y, z}, ColorData["TemperatureMap"][d[[i++, 4]]]],
PlotStyle -> Directive[PointSize[Large]]]]
d[[1 ;; 5]]
-- it is exactly in this format.
$\endgroup$
How about a grid of x vs y combinations. Here is an example in R http://gettinggeneticsdone.blogspot.ca/2011/07/ Not difficult to do in Mathematica also, just not automatic.
a = Table[RandomReal[], {x, 1, 3}, {y, 1, 3}];
x = Table[RandomReal[], {x, 1, 3}, {y, 1, 100}];
y = a.x;
Table[ListPlot[Thread[{y[[i]], y[[j]]}], PlotLabel -> {i, j}], {i, 1,
3}, {j, 1, 3}] // Grid
BubbleChart3D
is meant for that. Ali, it's really up to you what command you want to use, look here at this list for a starter: reference.wolfram.com/mathematica/guide/… $\endgroup$