New in Wolfram
Mathematica
8: Statistical Visualization
◄
previous
|
next
►
Graphics & Visualization
Show Bird's-Eye View of 2D Data
Show a bird's-eye view of 2D data with a marginal distribution drawn as a histogram on the sides.
In[1]:=
X
data = RandomReal[BinormalDistribution[{-1, 2}, {1, 1}, 0.8], 1000];
In[2]:=
X
DensityHistogram[data, {0.2}, ColorFunction -> "DarkRainbow", Method -> {"DistributionAxes" -> "Histogram"}, ChartBaseStyle -> Directive[FaceForm[Opacity[1]], EdgeForm[White]], ImageSize -> 500, BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold]
Out[2]=