/
direct-speech-travelogues.html
39 lines (36 loc) · 3.31 KB
/
direct-speech-travelogues.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script src="https://cdn.plot.ly/plotly-latest.min.js"></script></head>
<body>
<div id="myDiv" style="width: 700px; height: 500px;"></div><img id="png-export"><script>
var d3 = Plotly.d3;
var img_png= d3.select('#png-export');
var data = [
{
y: [0.421301775147928994,0.665924276169265033,0.565737051792828685,0.376311844077961019,0.751888436955258571,0.605763688760806916,0.654168504631671813,0.502450980392156863,0.164202334630350195,0.453008789722785666,0.449710982658959538,0.56303972366148532,0.673108963678773742,0.728494623655913978,0.747628083491461101,0.394233884029802397,0.737534110642520466,0.40324449594438007,0.460317460317460317,0.438927507447864945,0.634416033172080166,0.271653543307086614,0.514221556886227545,0.463350785340314136,0.324762437115707099,0.300602928509905254,0.686246418338108883,0.469096671949286846,0.555634807417974322,0.676906779661016949,0.514886164623467601,0.308884297520661157,0.480984340044742729,0.377128953771289538,0.297337278106508876,0.492795389048991354,0.573226821592834665,0.543378995433789954,0.358164033107599699,0.176864244741873805,0.418936446173800259,0.558964525407478428,0.312883435582822086,0.648760330578512397,0.655683690280065898,0.47619047619047619,0.449801474758933636,0.554047259929612871,0.550442477876106195,0.52662037037037037,0.62576219512195122,0.525442477876106195,0.518746854554604932,0.234686854783207158,0.285054818234275822,0.327935222672064777,0.55139694254085398,0.433532486930545183,0.415873015873015873,0.550973654066437572,0.401197604790419162,0.579852579852579853,0.399772209567198178,0.470351758793969849,0.572236180904522613,0.299741602067183463,0.246541501976284585,0.777227722772277228,0.25123500352858151,0.659317211948790896,0.352285395763656633,0.512759170653907496,0.770243581303489138,0.39866369710467706,0.23242300987797792,0.744444444444444444,0.639783328317785134,0.535112359550561798,0.434482758620689655,0.535825545171339564,0.586664508820197443,0.263609467455621302,0.471395881006864989,0.287037037037037037,0.251107828655834564,0.271983640081799591,0.393788819875776398,0.293939393939393939,0.581049334377447142,0.741016949152542373,0.499385749385749386,0.575286415711947627],
boxpoints: 'all',
jitter: 0.3,
pointpos: -1.8,
type: 'box',
name: 'novels'
},
{
y: [0.290093670167470905,0.103542234332425068,0.189087488240827846],
boxpoints: 'all',
jitter: 0.3,
pointpos: -1.8,
type: 'box',
name: 'travelogues'
}
];
var layout = {
legend: {font: {size: 14}},
yaxis: {
range: [0,1],
title: "paragraphs with direct speech (relative)"
},
xaxis: {tickfont: {size: 14}}
};
Plotly.newPlot('myDiv', data, layout)
</script></body>
</html>