Ploting Box Plot From Statistical Summary Data
I would like to add a box plot to my page. Something like this (using Plotly.js). The problem with implementing the example from the link above is that the plotly.js library expec
Solution 1:
You can provide the values for the box plot in the y
-value of the Plotly box plot object. See the snippet below and the discussion here.
var min = 1;
var max = 11;
var med = 4.25;
var stdev = 2;
var y = [min,
med - stdev,
med - stdev,
med,
med + stdev,
med + stdev,
max
];
var box = {
y: y,
type: 'box'
};
Plotly.newPlot('myDiv', [box]);
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="myDiv"></div>
</body>
Post a Comment for "Ploting Box Plot From Statistical Summary Data"