Skip to content

Commit 0fdb927

Browse files
committed
Merge branch 'master' of github.com:SciRuby/sciruby-notebooks
2 parents ba20224 + b89cd8d commit 0fdb927

File tree

1 file changed

+154
-0
lines changed

1 file changed

+154
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Creating Boxplots with daru and statsample\n",
8+
"\n",
9+
"### Description\n",
10+
"\n",
11+
"This example illustrates how daru, combined with Statsample::Graph::Boxplot\n",
12+
"can be used for generating box plots of a normally distributed set of data.\n",
13+
"\n",
14+
"The 'rnorm' function, defined in statsample/shorthands generates a Daru::Vector\n",
15+
"object which contains the specified number of random variables in a normal distribution.\n",
16+
"It uses the 'distribution' gem for this purpose."
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": 7,
22+
"metadata": {
23+
"collapsed": false,
24+
"scrolled": false
25+
},
26+
"outputs": [
27+
{
28+
"data": {
29+
"text/plain": [
30+
"Daru::Vector"
31+
]
32+
},
33+
"execution_count": 7,
34+
"metadata": {},
35+
"output_type": "execute_result"
36+
}
37+
],
38+
"source": [
39+
"require 'daru'\n",
40+
"require 'statsample'\n",
41+
"include Statsample::Shorthand\n",
42+
"\n",
43+
"n = 30\n",
44+
"a = rnorm(n-1,50,10)\n",
45+
"b = rnorm(n, 30,5)\n",
46+
"c = rnorm(n,5,1)\n",
47+
"a.push(2)\n",
48+
"\n",
49+
"a.class"
50+
]
51+
},
52+
{
53+
"cell_type": "code",
54+
"execution_count": 8,
55+
"metadata": {
56+
"collapsed": false
57+
},
58+
"outputs": [
59+
{
60+
"data": {
61+
"text/html": [
62+
"<div id='vis-68d1b1dc-9992-40b9-9295-5c2aa33916e0'></div>\n",
63+
"<script>\n",
64+
"(function(){\n",
65+
" var render = function(){\n",
66+
" var model = {\"panes\":[{\"diagrams\":[{\"type\":\"scatter\",\"options\":{\"x\":\"data0\",\"y\":\"data1\"},\"data\":\"da5a166d-0062-4ea7-a8a4-97a88d8344f4\"}],\"options\":{\"zoom\":true,\"width\":700,\"xrange\":[0,29],\"yrange\":[2,78.55948349140391]}}],\"data\":{\"da5a166d-0062-4ea7-a8a4-97a88d8344f4\":[{\"data0\":0,\"data1\":38.30971413680693},{\"data0\":1,\"data1\":55.44387982490567},{\"data0\":2,\"data1\":45.76519338095696},{\"data0\":3,\"data1\":56.005193440590986},{\"data0\":4,\"data1\":59.72251047251204},{\"data0\":5,\"data1\":50.486217817164395},{\"data0\":6,\"data1\":57.04538860223644},{\"data0\":7,\"data1\":24.076541667218926},{\"data0\":8,\"data1\":58.877071960799064},{\"data0\":9,\"data1\":45.93014563731179},{\"data0\":10,\"data1\":59.37772697796843},{\"data0\":11,\"data1\":42.95819596171652},{\"data0\":12,\"data1\":58.92061969024059},{\"data0\":13,\"data1\":39.426675104618155},{\"data0\":14,\"data1\":48.25115168826487},{\"data0\":15,\"data1\":53.835700573183},{\"data0\":16,\"data1\":57.3372477889954},{\"data0\":17,\"data1\":41.538072731617056},{\"data0\":18,\"data1\":78.55948349140391},{\"data0\":19,\"data1\":56.2110309713634},{\"data0\":20,\"data1\":43.68845501421002},{\"data0\":21,\"data1\":49.75094921116981},{\"data0\":22,\"data1\":50.04177270608168},{\"data0\":23,\"data1\":38.71961201083437},{\"data0\":24,\"data1\":48.99456130060846},{\"data0\":25,\"data1\":48.67995207640971},{\"data0\":26,\"data1\":39.935161526817645},{\"data0\":27,\"data1\":50.978744991372004},{\"data0\":28,\"data1\":54.455956868504416},{\"data0\":29,\"data1\":2}]},\"extension\":[]}\n",
67+
" var id_name = '#vis-68d1b1dc-9992-40b9-9295-5c2aa33916e0';\n",
68+
" Nyaplot.core.parse(model, id_name);\n",
69+
"\n",
70+
" require(['downloadable'], function(downloadable){\n",
71+
" var svg = d3.select(id_name).select(\"svg\");\n",
72+
"\t if(!svg.empty())\n",
73+
"\t svg.call(downloadable().filename('fig'));\n",
74+
"\t});\n",
75+
" };\n",
76+
" if(window['Nyaplot']==undefined){\n",
77+
" window.addEventListener('load_nyaplot', render, false);\n",
78+
"\treturn;\n",
79+
" } else {\n",
80+
" render();\n",
81+
" }\n",
82+
"})();\n",
83+
"</script>\n"
84+
],
85+
"text/plain": [
86+
"#<Nyaplot::Frame:0x8eebbe8 @properties={:panes=>[#<Nyaplot::Plot:0x8eee050 @properties={:diagrams=>[#<Nyaplot::Diagram:0x8eefb08 @properties={:type=>:scatter, :options=>{:x=>\"data0\", :y=>\"data1\"}, :data=>\"da5a166d-0062-4ea7-a8a4-97a88d8344f4\"}, @xrange=[0, 29], @yrange=[2, 78.55948349140391]>], :options=>{:zoom=>true, :width=>700, :xrange=>[0, 29], :yrange=>[2, 78.55948349140391]}}>], :data=>{\"da5a166d-0062-4ea7-a8a4-97a88d8344f4\"=>#<Nyaplot::DataFrame:0x8eedb50 @name=\"da5a166d-0062-4ea7-a8a4-97a88d8344f4\", @rows=[{:data0=>0, :data1=>38.30971413680693}, {:data0=>1, :data1=>55.44387982490567}, {:data0=>2, :data1=>45.76519338095696}, {:data0=>3, :data1=>56.005193440590986}, {:data0=>4, :data1=>59.72251047251204}, {:data0=>5, :data1=>50.486217817164395}, {:data0=>6, :data1=>57.04538860223644}, {:data0=>7, :data1=>24.076541667218926}, {:data0=>8, :data1=>58.877071960799064}, {:data0=>9, :data1=>45.93014563731179}, {:data0=>10, :data1=>59.37772697796843}, {:data0=>11, :data1=>42.95819596171652}, {:data0=>12, :data1=>58.92061969024059}, {:data0=>13, :data1=>39.426675104618155}, {:data0=>14, :data1=>48.25115168826487}, {:data0=>15, :data1=>53.835700573183}, {:data0=>16, :data1=>57.3372477889954}, {:data0=>17, :data1=>41.538072731617056}, {:data0=>18, :data1=>78.55948349140391}, {:data0=>19, :data1=>56.2110309713634}, {:data0=>20, :data1=>43.68845501421002}, {:data0=>21, :data1=>49.75094921116981}, {:data0=>22, :data1=>50.04177270608168}, {:data0=>23, :data1=>38.71961201083437}, {:data0=>24, :data1=>48.99456130060846}, {:data0=>25, :data1=>48.67995207640971}, {:data0=>26, :data1=>39.935161526817645}, {:data0=>27, :data1=>50.978744991372004}, {:data0=>28, :data1=>54.455956868504416}, {:data0=>29, :data1=>2}]>}, :extension=>[]}>"
87+
]
88+
},
89+
"metadata": {},
90+
"output_type": "display_data"
91+
}
92+
],
93+
"source": [
94+
"a.plot"
95+
]
96+
},
97+
{
98+
"cell_type": "markdown",
99+
"metadata": {},
100+
"source": [
101+
"#### Create a boxplot of the data by specifying the vectors a, b and c and providing necessary options to Statsample::Graph::Boxplot. \n",
102+
"\n",
103+
"#### The `#to_svg` function returns the boxplot image in a raw SVG format. To display this properly in iruby we need to pass that output to the `IRuby.svg` method."
104+
]
105+
},
106+
{
107+
"cell_type": "code",
108+
"execution_count": 4,
109+
"metadata": {
110+
"collapsed": false
111+
},
112+
"outputs": [
113+
{
114+
"data": {
115+
"image/svg+xml": [
116+
"<svg fill='none' font-family='sans-serif' font-size='10px' height='300' stroke='none' stroke-width='1.5' width='300' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'><g transform='translate(20,10)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='260' y1='270.0' y2='270.0'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='231.42857142857144' y2='231.42857142857144'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='192.85714285714286' y2='192.85714285714286'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='154.28571428571428' y2='154.28571428571428'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='115.71428571428572' y2='115.71428571428572'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='77.14285714285714' y2='77.14285714285714'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='38.571428571428584' y2='38.571428571428584'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='0.0' y2='0.0'/></g><g transform='translate(20,10)'><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,270.0)' x='-3'>0</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,231.42857142857144)' x='-3'>10</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,192.85714285714286)' x='-3'>20</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,154.28571428571428)' x='-3'>30</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,115.71428571428572)' x='-3'>40</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,77.14285714285714)' x='-3'>50</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,38.571428571428584)' x='-3'>60</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,0.0)' x='-3'>70</text></g><g transform='translate(20,10)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='260' y1='270' y2='270'/></g><g transform='translate(20,10)'/><g transform='translate(20,10)'><g transform='translate(16.249999999999996,0)'><rect fill='rgb(31,119,180)' height='50.72309759594697' stroke='rgb(21,83,125)' stroke-width='1.0' width='65.0' y='46.955009464668336'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='84.04659451574648' y2='84.04659451574648'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='120.34606554779847' y2='120.34606554779847'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='97.6781070606153' y2='120.34606554779847'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='3.314523277496619' y2='3.314523277496619'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='3.314523277496619' y2='46.955009464668336'/></g><g transform='translate(16.249999999999996,0)'><a xlink:title='30.618772148493367'><circle cx='32.5' cy='151.89902171295415' fill='none' r='2.0' stroke='rgb(31,119,180)'/></a><a xlink:title='2'><circle cx='32.5' cy='262.2857142857143' fill='none' r='2.0' stroke='rgb(31,119,180)'/></a></g><g transform='translate(97.5,0)'><rect fill='rgb(31,119,180)' height='24.91143125074865' stroke='rgb(21,83,125)' stroke-width='1.0' width='65.0' y='148.09593697959446'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='160.2231500487069' y2='160.2231500487069'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='193.75351983464964' y2='193.75351983464964'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='173.0073682303431' y2='193.75351983464964'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='139.20942822672433' y2='139.20942822672433'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='139.20942822672436' y2='148.09593697959448'/></g><g transform='translate(97.5,0)'><a xlink:title='43.27542047180245'><circle cx='32.5' cy='103.08052103733343' fill='none' r='2.0' stroke='rgb(255,127,14)'/></a></g><g transform='translate(178.75,0)'><rect fill='rgb(255,127,14)' height='5.36610583385659' stroke='rgb(178,88,9)' stroke-width='1.0' width='65.0' y='247.5206842961231'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='250.23325417157636' y2='250.23325417157636'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='257.3780272088996' y2='257.3780272088996'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='252.88679012997966' y2='257.3780272088996'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='244.66647399068165' y2='244.66647399068165'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='244.66647399068165' y2='247.52068429612308'/></g><g transform='translate(178.75,0)'><a xlink:title='7.312084261776322'><circle cx='32.5' cy='241.79624641886275' fill='none' r='2.0' stroke='rgb(44,160,44)'/></a><a xlink:title='7.34441008649586'><circle cx='32.5' cy='241.67156109494454' fill='none' r='2.0' stroke='rgb(44,160,44)'/></a></g></g></svg>"
117+
],
118+
"text/plain": [
119+
"\"<svg fill='none' font-family='sans-serif' font-size='10px' height='300' stroke='none' stroke-width='1.5' width='300' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns='http://www.w3.org/2000/svg'><g transform='translate(20,10)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='260' y1='270.0' y2='270.0'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='231.42857142857144' y2='231.42857142857144'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='192.85714285714286' y2='192.85714285714286'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='154.28571428571428' y2='154.28571428571428'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='115.71428571428572' y2='115.71428571428572'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='77.14285714285714' y2='77.14285714285714'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='38.571428571428584' y2='38.571428571428584'/><line shape-rendering='crispEdges' stroke='rgb(238,238,238)' stroke-width='1' x1='0' x2='260' y1='0.0' y2='0.0'/></g><g transform='translate(20,10)'><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,270.0)' x='-3'>0</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,231.42857142857144)' x='-3'>10</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,192.85714285714286)' x='-3'>20</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,154.28571428571428)' x='-3'>30</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,115.71428571428572)' x='-3'>40</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,77.14285714285714)' x='-3'>50</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,38.571428571428584)' x='-3'>60</text><text dy='.35em' fill='rgb(0,0,0)' pointer-events='none' text-anchor='end' transform='translate(0,0.0)' x='-3'>70</text></g><g transform='translate(20,10)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='260' y1='270' y2='270'/></g><g transform='translate(20,10)'/><g transform='translate(20,10)'><g transform='translate(16.249999999999996,0)'><rect fill='rgb(31,119,180)' height='50.72309759594697' stroke='rgb(21,83,125)' stroke-width='1.0' width='65.0' y='46.955009464668336'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='84.04659451574648' y2='84.04659451574648'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='120.34606554779847' y2='120.34606554779847'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='97.6781070606153' y2='120.34606554779847'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='3.314523277496619' y2='3.314523277496619'/></g><g transform='translate(16.249999999999996,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='3.314523277496619' y2='46.955009464668336'/></g><g transform='translate(16.249999999999996,0)'><a xlink:title='30.618772148493367'><circle cx='32.5' cy='151.89902171295415' fill='none' r='2.0' stroke='rgb(31,119,180)'/></a><a xlink:title='2'><circle cx='32.5' cy='262.2857142857143' fill='none' r='2.0' stroke='rgb(31,119,180)'/></a></g><g transform='translate(97.5,0)'><rect fill='rgb(31,119,180)' height='24.91143125074865' stroke='rgb(21,83,125)' stroke-width='1.0' width='65.0' y='148.09593697959446'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='160.2231500487069' y2='160.2231500487069'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='193.75351983464964' y2='193.75351983464964'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='173.0073682303431' y2='193.75351983464964'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='139.20942822672433' y2='139.20942822672433'/></g><g transform='translate(97.5,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='139.20942822672436' y2='148.09593697959448'/></g><g transform='translate(97.5,0)'><a xlink:title='43.27542047180245'><circle cx='32.5' cy='103.08052103733343' fill='none' r='2.0' stroke='rgb(255,127,14)'/></a></g><g transform='translate(178.75,0)'><rect fill='rgb(255,127,14)' height='5.36610583385659' stroke='rgb(178,88,9)' stroke-width='1.0' width='65.0' y='247.5206842961231'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='2' x1='0.0' x2='65.0' y1='250.23325417157636' y2='250.23325417157636'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='257.3780272088996' y2='257.3780272088996'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='252.88679012997966' y2='257.3780272088996'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='0' x2='65.0' y1='244.66647399068165' y2='244.66647399068165'/></g><g transform='translate(178.75,0)'><line shape-rendering='crispEdges' stroke='rgb(0,0,0)' stroke-width='1' x1='32.5' x2='32.5' y1='244.66647399068165' y2='247.52068429612308'/></g><g transform='translate(178.75,0)'><a xlink:title='7.312084261776322'><circle cx='32.5' cy='241.79624641886275' fill='none' r='2.0' stroke='rgb(44,160,44)'/></a><a xlink:title='7.34441008649586'><circle cx='32.5' cy='241.67156109494454' fill='none' r='2.0' stroke='rgb(44,160,44)'/></a></g></g></svg>\""
120+
]
121+
},
122+
"execution_count": 4,
123+
"metadata": {},
124+
"output_type": "execute_result"
125+
}
126+
],
127+
"source": [
128+
"IRuby.svg boxplot(:vectors=>[a,b,c],:width=>300, :height=>300, :groups=>%w{first first second}, :minimum=>0).to_svg"
129+
]
130+
},
131+
{
132+
"cell_type": "markdown",
133+
"metadata": {},
134+
"source": [
135+
"IRuby.svg boxplot(:vectors=>[a,b,c],:width=>300, :height=>300, :groups=>%w{first first second}, :minimum=>0).to_svg"
136+
]
137+
}
138+
],
139+
"metadata": {
140+
"kernelspec": {
141+
"display_name": "Ruby 2.2.1",
142+
"language": "ruby",
143+
"name": "ruby"
144+
},
145+
"language_info": {
146+
"file_extension": "rb",
147+
"mimetype": "application/x-ruby",
148+
"name": "ruby",
149+
"version": "2.2.1"
150+
}
151+
},
152+
"nbformat": 4,
153+
"nbformat_minor": 0
154+
}

0 commit comments

Comments
 (0)