source/kotlin_examples/cookbook/error_bars.ipynb (7,344 lines of code) (raw):
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:37.589575Z",
"iopub.status.busy": "2025-12-03T16:02:37.587773Z",
"iopub.status.idle": "2025-12-03T16:02:39.605396Z",
"shell.execute_reply": "2025-12-03T16:02:39.605128Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <div id=\"aLJyXR\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
" }; \n",
" window.letsPlotCall = function(f) {\n",
" window.letsPlotCallQueue.push(f);\n",
" };\n",
" (function() {\n",
" var script = document.createElement(\"script\");\n",
" script.type = \"text/javascript\";\n",
" script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.8.1/js-package/distr/lets-plot.min.js\";\n",
" script.onload = function() {\n",
" window.letsPlotCall = function(f) {f();};\n",
" window.letsPlotCallQueue.forEach(function(f) {f();});\n",
" window.letsPlotCallQueue = [];\n",
" \n",
" \n",
" };\n",
" script.onerror = function(event) {\n",
" window.letsPlotCall = function(f) {};\n",
" window.letsPlotCallQueue = [];\n",
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"aLJyXR\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"aLJyXR\");\n",
" e.appendChild(script);\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
" <div id=\"kotlin_out_0\"></div>\n",
" <script type=\"text/javascript\">\n",
" if(!window.kotlinQueues) {\n",
" window.kotlinQueues = {};\n",
" }\n",
" if(!window.kotlinQueues[\"letsPlotJs\"]) {\n",
" var resQueue = [];\n",
" window.kotlinQueues[\"letsPlotJs\"] = resQueue;\n",
" window[\"call_letsPlotJs\"] = function(f) {\n",
" resQueue.push(f);\n",
" }\n",
" }\n",
" (function (){\n",
" var modifiers = [(function(script) {\n",
" script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.8.1/js-package/distr/lets-plot.min.js\"\n",
" script.type = \"text/javascript\";\n",
"})];\n",
" var e = document.getElementById(\"kotlin_out_0\");\n",
" modifiers.forEach(function (gen) {\n",
" var script = document.createElement(\"script\");\n",
" gen(script)\n",
" script.addEventListener(\"load\", function() {\n",
" window[\"call_letsPlotJs\"] = function(f) {f();};\n",
" window.kotlinQueues[\"letsPlotJs\"].forEach(function(f) {f();});\n",
" window.kotlinQueues[\"letsPlotJs\"] = [];\n",
" }, false);\n",
" script.addEventListener(\"error\", function() {\n",
" window[\"call_letsPlotJs\"] = function(f) {};\n",
" window.kotlinQueues[\"letsPlotJs\"] = [];\n",
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading resource letsPlotJs';\n",
" document.getElementById(\"kotlin_out_0\").appendChild(div);\n",
" }, false);\n",
" \n",
" e.appendChild(script);\n",
" });\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%useLatestDescriptors\n",
"%use lets-plot"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:39.607139Z",
"iopub.status.busy": "2025-12-03T16:02:39.606788Z",
"iopub.status.idle": "2025-12-03T16:02:39.642895Z",
"shell.execute_reply": "2025-12-03T16:02:39.643028Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"Lets-Plot Kotlin API v.4.12.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.8.1.\n",
"Outputs: Web (HTML+JS), Kotlin Notebook (Swing), Static SVG (hidden)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"LetsPlot.getInfo()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Plotting means and error ranges.\n",
"\n",
"There are several ways to show error ranges on a plot. Among them are\n",
"- `geomErrorBar()`\n",
"- `geomCrossbar()`\n",
"- `geomLineRange()`\n",
"- `geomPointRange()`"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:39.644716Z",
"iopub.status.busy": "2025-12-03T16:02:39.644445Z",
"iopub.status.idle": "2025-12-03T16:02:39.753183Z",
"shell.execute_reply": "2025-12-03T16:02:39.752932Z"
}
},
"outputs": [],
"source": [
"// This example was found at: www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_(ggplot2)\n",
"val data = mapOf(\n",
" \"supp\" to listOf(\"OJ\", \"OJ\", \"OJ\", \"VC\", \"VC\", \"VC\"),\n",
" \"dose\" to listOf(0.5, 1.0, 2.0, 0.5, 1.0, 2.0),\n",
" \"length\" to listOf(13.23, 22.70, 26.06, 7.98, 16.77, 26.14),\n",
" \"len_min\" to listOf(11.83, 21.2, 24.50, 4.24, 15.26, 23.35),\n",
" \"len_max\" to listOf(15.63, 24.9, 27.11, 10.72, 19.28, 28.93)\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:39.754788Z",
"iopub.status.busy": "2025-12-03T16:02:39.754580Z",
"iopub.status.idle": "2025-12-03T16:02:39.812648Z",
"shell.execute_reply": "2025-12-03T16:02:39.812380Z"
}
},
"outputs": [],
"source": [
"val p = letsPlot(data) {x=\"dose\"; color=\"supp\"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Error-bars with lines and points."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:39.814289Z",
"iopub.status.busy": "2025-12-03T16:02:39.814078Z",
"iopub.status.idle": "2025-12-03T16:02:40.099310Z",
"shell.execute_reply": "2025-12-03T16:02:40.099388Z"
}
},
"outputs": [
{
"data": {
"text/html": [
" <div id=\"BdgOBX\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
" }; \n",
" window.letsPlotCall = function(f) {\n",
" window.letsPlotCallQueue.push(f);\n",
" };\n",
" (function() {\n",
" var script = document.createElement(\"script\");\n",
" script.type = \"text/javascript\";\n",
" script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/lets-plot@v4.8.1/js-package/distr/lets-plot.min.js\";\n",
" script.onload = function() {\n",
" window.letsPlotCall = function(f) {f();};\n",
" window.letsPlotCallQueue.forEach(function(f) {f();});\n",
" window.letsPlotCallQueue = [];\n",
" \n",
" \n",
" };\n",
" script.onerror = function(event) {\n",
" window.letsPlotCall = function(f) {};\n",
" window.letsPlotCallQueue = [];\n",
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"BdgOBX\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"BdgOBX\");\n",
" e.appendChild(script);\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"kind": "plot",
"layers": [
{
"geom": "errorbar",
"mapping": {
"ymax": "len_max",
"ymin": "len_min"
},
"position": "identity",
"stat": "identity",
"width": 0.1
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": "identity",
"stat": "identity"
},
{
"geom": "point",
"mapping": {
"y": "length"
},
"position": "identity",
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": []
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"joPo0K\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"joPo0K\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"width\":0.1,\n",
"\"position\":\"identity\",\n",
"\"geom\":\"errorbar\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":\"identity\",\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":\"identity\",\n",
"\"geom\":\"point\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"1\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=c92f48aa-70e6-4a52-9cf9-106ed0ef6d3d width=\"100%\" height=\"100%\" style=\"max-width: 600.0px; max-height: 400.0px;\" viewBox=\"0 0 600.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pQKwCyM .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pQKwCyM .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pQKwCyM .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pQKwCyM .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pQKwCyM .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pQKwCyM .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pQKwCyM .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pQKwCyM .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dIc1Fpi .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pQKwCyM .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pQKwCyM .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dIc1Fpi .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pQKwCyM .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pQKwCyM .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dIc1Fpi .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dIc1Fpi .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dIc1Fpi .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pQKwCyM\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.7307234056821983\" y1=\"0.0\" x2=\"0.7307234056821983\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"59.188595860257465\" y1=\"0.0\" x2=\"59.188595860257465\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"117.64646831483267\" y1=\"0.0\" x2=\"117.64646831483267\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"0.0\" x2=\"176.1043407694079\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"234.56221322398315\" y1=\"0.0\" x2=\"234.56221322398315\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"293.0200856785584\" y1=\"0.0\" x2=\"293.0200856785584\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"351.4779581331336\" y1=\"0.0\" x2=\"351.4779581331336\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"409.9358305877088\" y1=\"0.0\" x2=\"409.9358305877088\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"468.39370304228396\" y1=\"0.0\" x2=\"468.39370304228396\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"498.35336267525395\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"498.35336267525395\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"498.35336267525395\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"498.35336267525395\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"498.35336267525395\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"498.35336267525395\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cnySfid)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (498.35336267525395, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"22.65242557614792\" y1=\"238.9783497183254\" x2=\"37.266893689791715\" y2=\"238.9783497183254\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"22.65242557614792\" y1=\"189.44780735667734\" x2=\"37.266893689791715\" y2=\"189.44780735667734\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"29.959659632969817\" y1=\"238.9783497183254\" x2=\"29.959659632969817\" y2=\"189.44780735667734\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"168.797106712586\" y1=\"116.84645973710371\" x2=\"183.41157482622978\" y2=\"116.84645973710371\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"168.797106712586\" y1=\"68.61935270076219\" x2=\"183.41157482622978\" y2=\"68.61935270076219\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"116.84645973710371\" x2=\"176.1043407694079\" y2=\"68.61935270076219\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"461.08646898546215\" y1=\"73.83309400198829\" x2=\"475.700937099106\" y2=\"73.83309400198829\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"461.08646898546215\" y1=\"39.81343201148792\" x2=\"475.700937099106\" y2=\"39.81343201148792\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"468.3937030422841\" y1=\"73.83309400198829\" x2=\"468.3937030422841\" y2=\"39.81343201148792\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"22.65242557614792\" y1=\"337.9090909090909\" x2=\"37.266893689791715\" y2=\"337.9090909090909\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"22.65242557614792\" y1=\"253.44648182922788\" x2=\"37.266893689791715\" y2=\"253.44648182922788\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"29.959659632969817\" y1=\"337.9090909090909\" x2=\"29.959659632969817\" y2=\"253.44648182922788\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"168.797106712586\" y1=\"194.2705180603115\" x2=\"183.41157482622978\" y2=\"194.2705180603115\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"168.797106712586\" y1=\"141.87241798298905\" x2=\"183.41157482622978\" y2=\"141.87241798298905\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"194.2705180603115\" x2=\"176.1043407694079\" y2=\"141.87241798298905\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"461.08646898546215\" y1=\"88.82260024301337\" x2=\"475.700937099106\" y2=\"88.82260024301337\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"461.08646898546215\" y1=\"16.090909090909122\" x2=\"475.700937099106\" y2=\"16.090909090909122\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"468.3937030422841\" y1=\"88.82260024301337\" x2=\"468.3937030422841\" y2=\"16.090909090909122\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M29.959659632969817 220.73025516403402 L29.959659632969817 220.73025516403402 L176.1043407694079 97.29492985750579 L468.3937030422841 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M29.959659632969817 289.1606097426268 L29.959659632969817 289.1606097426268 L176.1043407694079 174.58864464818294 L468.3937030422841 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"29.959659632969817\" cy=\"220.73025516403402\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"176.1043407694079\" cy=\"97.29492985750579\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"468.3937030422841\" cy=\"53.49950292720649\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"29.959659632969817\" cy=\"289.1606097426268\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"176.1043407694079\" cy=\"174.58864464818294\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"468.3937030422841\" cy=\"52.45675466696122\" r=\"3.3000000000000003\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"c25JdeU\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"c8JHYI6\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cnySfid\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(0.7307234056821983 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(59.188595860257465 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(117.64646831483267 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(176.1043407694079 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(234.56221322398315 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(293.0200856785584 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(351.4779581331336 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(409.9358305877088 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(468.39370304228396 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"498.35336267525395\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>length</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(288.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>dose</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(540.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"6.146249999999999\" y1=\"0.8250000000000001\" x2=\"14.853750000000002\" y2=\"0.8250000000000001\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"6.146249999999999\" y1=\"20.175\" x2=\"14.853750000000002\" y2=\"20.175\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"6.146249999999999\" y1=\"0.8250000000000001\" x2=\"14.853750000000002\" y2=\"0.8250000000000001\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"6.146249999999999\" y1=\"20.175\" x2=\"14.853750000000002\" y2=\"20.175\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dIc1Fpi\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"c92f48aa-70e6-4a52-9cf9-106ed0ef6d3d\").style.display = \"none\";</script>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"p + geomErrorBar(width = .1) {ymin = \"len_min\"; ymax = \"len_max\"} +\n",
" geomLine {y = \"length\"} +\n",
" geomPoint {y = \"length\"}"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.101307Z",
"iopub.status.busy": "2025-12-03T16:02:40.100888Z",
"iopub.status.idle": "2025-12-03T16:02:40.171887Z",
"shell.execute_reply": "2025-12-03T16:02:40.171442Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"kind": "plot",
"layers": [
{
"geom": "errorbar",
"mapping": {
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity",
"width": 0.1
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"geom": "point",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": []
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"CuGFSA\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"CuGFSA\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"width\":0.1,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"errorbar\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"point\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"3\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=f763d3b6-fb0e-4d1b-987c-bbc0874254fc width=\"100%\" height=\"100%\" style=\"max-width: 600.0px; max-height: 400.0px;\" viewBox=\"0 0 600.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pGwlE5W .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pGwlE5W .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pGwlE5W .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pGwlE5W .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pGwlE5W .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pGwlE5W .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pGwlE5W .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pGwlE5W .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTmIJZ3 .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pGwlE5W .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pGwlE5W .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTmIJZ3 .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pGwlE5W .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pGwlE5W .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTmIJZ3 .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTmIJZ3 .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dTmIJZ3 .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pGwlE5W\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.7307234056821983\" y1=\"0.0\" x2=\"0.7307234056821983\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"59.188595860257465\" y1=\"0.0\" x2=\"59.188595860257465\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"117.64646831483267\" y1=\"0.0\" x2=\"117.64646831483267\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"0.0\" x2=\"176.1043407694079\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"234.56221322398315\" y1=\"0.0\" x2=\"234.56221322398315\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"293.0200856785584\" y1=\"0.0\" x2=\"293.0200856785584\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"351.4779581331336\" y1=\"0.0\" x2=\"351.4779581331336\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"409.9358305877088\" y1=\"0.0\" x2=\"409.9358305877088\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"468.39370304228396\" y1=\"0.0\" x2=\"468.39370304228396\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"498.35336267525395\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"498.35336267525395\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"498.35336267525395\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"498.35336267525395\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"498.35336267525395\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"498.35336267525395\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cStAZHb)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (498.35336267525395, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"22.65242557614792\" y1=\"238.9783497183254\" x2=\"29.959659632969817\" y2=\"238.9783497183254\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"22.65242557614792\" y1=\"189.44780735667734\" x2=\"29.959659632969817\" y2=\"189.44780735667734\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"26.306042604558854\" y1=\"238.9783497183254\" x2=\"26.306042604558854\" y2=\"189.44780735667734\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"168.797106712586\" y1=\"116.84645973710371\" x2=\"176.1043407694079\" y2=\"116.84645973710371\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"168.797106712586\" y1=\"68.61935270076219\" x2=\"176.1043407694079\" y2=\"68.61935270076219\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"172.45072374099695\" y1=\"116.84645973710371\" x2=\"172.45072374099695\" y2=\"68.61935270076219\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"461.08646898546215\" y1=\"73.83309400198829\" x2=\"468.3937030422841\" y2=\"73.83309400198829\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"461.08646898546215\" y1=\"39.81343201148792\" x2=\"468.3937030422841\" y2=\"39.81343201148792\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"464.7400860138731\" y1=\"73.83309400198829\" x2=\"464.7400860138731\" y2=\"39.81343201148792\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"29.959659632969817\" y1=\"337.9090909090909\" x2=\"37.266893689791715\" y2=\"337.9090909090909\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"29.959659632969817\" y1=\"253.44648182922788\" x2=\"37.266893689791715\" y2=\"253.44648182922788\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"33.61327666138075\" y1=\"337.9090909090909\" x2=\"33.61327666138075\" y2=\"253.44648182922788\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"176.1043407694079\" y1=\"194.2705180603115\" x2=\"183.41157482622978\" y2=\"194.2705180603115\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"141.87241798298905\" x2=\"183.41157482622978\" y2=\"141.87241798298905\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"179.75795779781888\" y1=\"194.2705180603115\" x2=\"179.75795779781888\" y2=\"141.87241798298905\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"468.3937030422841\" y1=\"88.82260024301337\" x2=\"475.700937099106\" y2=\"88.82260024301337\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"468.3937030422841\" y1=\"16.090909090909122\" x2=\"475.700937099106\" y2=\"16.090909090909122\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"472.04732007069504\" y1=\"88.82260024301337\" x2=\"472.04732007069504\" y2=\"16.090909090909122\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M26.306042604558854 220.73025516403402 L26.306042604558854 220.73025516403402 L172.45072374099695 97.29492985750579 L464.7400860138731 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M33.61327666138075 289.1606097426268 L33.61327666138075 289.1606097426268 L179.75795779781888 174.58864464818294 L472.04732007069504 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"26.306042604558854\" cy=\"220.73025516403402\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"172.45072374099695\" cy=\"97.29492985750579\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"464.7400860138731\" cy=\"53.49950292720649\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"33.61327666138075\" cy=\"289.1606097426268\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"179.75795779781888\" cy=\"174.58864464818294\" r=\"3.3000000000000003\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"472.04732007069504\" cy=\"52.45675466696122\" r=\"3.3000000000000003\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cX1w2tZ\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cTekiuj\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cStAZHb\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(0.7307234056821983 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(59.188595860257465 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(117.64646831483267 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(176.1043407694079 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(234.56221322398315 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(293.0200856785584 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(351.4779581331336 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(409.9358305877088 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(468.39370304228396 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"498.35336267525395\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>length</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(288.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>dose</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(540.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"6.146249999999999\" y1=\"0.8250000000000001\" x2=\"14.853750000000002\" y2=\"0.8250000000000001\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"6.146249999999999\" y1=\"20.175\" x2=\"14.853750000000002\" y2=\"20.175\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"6.146249999999999\" y1=\"0.8250000000000001\" x2=\"14.853750000000002\" y2=\"0.8250000000000001\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"6.146249999999999\" y1=\"20.175\" x2=\"14.853750000000002\" y2=\"20.175\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"10.5\" y1=\"0.8250000000000001\" x2=\"10.5\" y2=\"20.175\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dTmIJZ3\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"f763d3b6-fb0e-4d1b-987c-bbc0874254fc\").style.display = \"none\";</script>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// The errorbars overlapped, so use position_dodge to move them horizontally\n",
"val pd = positionDodge(0.1) // move them .05 to the left and right\n",
"p + geomErrorBar(width=.1, position=pd) {ymin=\"len_min\"; ymax=\"len_max\"} +\n",
" geomLine(position=pd) {y=\"length\"} +\n",
" geomPoint(position=pd) {y=\"length\"}"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.173896Z",
"iopub.status.busy": "2025-12-03T16:02:40.173449Z",
"iopub.status.idle": "2025-12-03T16:02:40.238819Z",
"shell.execute_reply": "2025-12-03T16:02:40.238680Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"kind": "plot",
"layers": [
{
"color": "pen",
"geom": "errorbar",
"mapping": {
"group": "supp",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity",
"width": 0.1
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"geom": "point",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"size": 5.0,
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": []
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"ZwXr7f\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"ZwXr7f\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"group\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"color\":\"pen\",\n",
"\"width\":0.1,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"errorbar\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"size\":5.0,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"point\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"5\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=834a4fcc-4d3a-44bb-a59b-823528098e7e width=\"100%\" height=\"100%\" style=\"max-width: 600.0px; max-height: 400.0px;\" viewBox=\"0 0 600.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pJgKjEr .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pJgKjEr .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pJgKjEr .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pJgKjEr .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pJgKjEr .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pJgKjEr .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pJgKjEr .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pJgKjEr .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgbrHu2 .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pJgKjEr .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pJgKjEr .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgbrHu2 .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pJgKjEr .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pJgKjEr .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgbrHu2 .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgbrHu2 .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dgbrHu2 .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pJgKjEr\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.7307234056821983\" y1=\"0.0\" x2=\"0.7307234056821983\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"59.188595860257465\" y1=\"0.0\" x2=\"59.188595860257465\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"117.64646831483267\" y1=\"0.0\" x2=\"117.64646831483267\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"0.0\" x2=\"176.1043407694079\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"234.56221322398315\" y1=\"0.0\" x2=\"234.56221322398315\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"293.0200856785584\" y1=\"0.0\" x2=\"293.0200856785584\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"351.4779581331336\" y1=\"0.0\" x2=\"351.4779581331336\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"409.9358305877088\" y1=\"0.0\" x2=\"409.9358305877088\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"468.39370304228396\" y1=\"0.0\" x2=\"468.39370304228396\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"498.35336267525395\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"498.35336267525395\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"498.35336267525395\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"498.35336267525395\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"498.35336267525395\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"498.35336267525395\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cJuijzx)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (498.35336267525395, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"22.65242557614792\" y1=\"238.9783497183254\" x2=\"29.959659632969817\" y2=\"238.9783497183254\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"22.65242557614792\" y1=\"189.44780735667734\" x2=\"29.959659632969817\" y2=\"189.44780735667734\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"26.306042604558854\" y1=\"238.9783497183254\" x2=\"26.306042604558854\" y2=\"189.44780735667734\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"168.797106712586\" y1=\"116.84645973710371\" x2=\"176.1043407694079\" y2=\"116.84645973710371\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"168.797106712586\" y1=\"68.61935270076219\" x2=\"176.1043407694079\" y2=\"68.61935270076219\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"172.45072374099695\" y1=\"116.84645973710371\" x2=\"172.45072374099695\" y2=\"68.61935270076219\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"461.08646898546215\" y1=\"73.83309400198829\" x2=\"468.3937030422841\" y2=\"73.83309400198829\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"461.08646898546215\" y1=\"39.81343201148792\" x2=\"468.3937030422841\" y2=\"39.81343201148792\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"464.7400860138731\" y1=\"73.83309400198829\" x2=\"464.7400860138731\" y2=\"39.81343201148792\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"29.959659632969817\" y1=\"337.9090909090909\" x2=\"37.266893689791715\" y2=\"337.9090909090909\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"29.959659632969817\" y1=\"253.44648182922788\" x2=\"37.266893689791715\" y2=\"253.44648182922788\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"33.61327666138075\" y1=\"337.9090909090909\" x2=\"33.61327666138075\" y2=\"253.44648182922788\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"176.1043407694079\" y1=\"194.2705180603115\" x2=\"183.41157482622978\" y2=\"194.2705180603115\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"176.1043407694079\" y1=\"141.87241798298905\" x2=\"183.41157482622978\" y2=\"141.87241798298905\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"179.75795779781888\" y1=\"194.2705180603115\" x2=\"179.75795779781888\" y2=\"141.87241798298905\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"468.3937030422841\" y1=\"88.82260024301337\" x2=\"475.700937099106\" y2=\"88.82260024301337\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"468.3937030422841\" y1=\"16.090909090909122\" x2=\"475.700937099106\" y2=\"16.090909090909122\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"472.04732007069504\" y1=\"88.82260024301337\" x2=\"472.04732007069504\" y2=\"16.090909090909122\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M26.306042604558854 220.73025516403402 L26.306042604558854 220.73025516403402 L172.45072374099695 97.29492985750579 L464.7400860138731 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M33.61327666138075 289.1606097426268 L33.61327666138075 289.1606097426268 L179.75795779781888 174.58864464818294 L472.04732007069504 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"26.306042604558854\" cy=\"220.73025516403402\" r=\"5.5\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"172.45072374099695\" cy=\"97.29492985750579\" r=\"5.5\" />\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"464.7400860138731\" cy=\"53.49950292720649\" r=\"5.5\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"33.61327666138075\" cy=\"289.1606097426268\" r=\"5.5\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"179.75795779781888\" cy=\"174.58864464818294\" r=\"5.5\" />\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"472.04732007069504\" cy=\"52.45675466696122\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cx3vvxD\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"csvKlyc\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cJuijzx\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"498.35336267525395\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(0.7307234056821983 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(59.188595860257465 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(117.64646831483267 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(176.1043407694079 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(234.56221322398315 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(293.0200856785584 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(351.4779581331336 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(409.9358305877088 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(468.39370304228396 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"498.35336267525395\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>length</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(288.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>dose</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(540.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(228,26,28)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#e41a1c\" stroke=\"#e41a1c\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(55,126,184)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#377eb8\" stroke=\"#377eb8\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"5.5\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L600.0 400.0 L600.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dgbrHu2\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"834a4fcc-4d3a-44bb-a59b-823528098e7e\").style.display = \"none\";</script>"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Black errorbars - notice the mapping of 'group=supp'\n",
"// Without it, the errorbars won't be dodged!\n",
"p + geomErrorBar(\n",
" color = \"pen\", \n",
" width = .1, \n",
" position = pd) {ymin = \"len_min\"; ymax = \"len_max\"; group = \"supp\"} +\n",
" geomLine(position = pd) {y = \"length\"} +\n",
" geomPoint(position = pd, size = 5) {y = \"length\"}"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.240679Z",
"iopub.status.busy": "2025-12-03T16:02:40.240264Z",
"iopub.status.idle": "2025-12-03T16:02:40.351641Z",
"shell.execute_reply": "2025-12-03T16:02:40.351529Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"ggtitle": {
"text": "The Effect of Vitamin C on Tooth Growth in Guinea Pigs"
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"color": "pen",
"geom": "errorbar",
"mapping": {
"group": "supp",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity",
"width": 0.1
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"geom": "point",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"shape": 21.0,
"size": 5.0,
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
],
"theme": {
"legend_justification": [
1.0,
0.0
],
"legend_position": [
1.0,
0.0
]
}
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"CGyLXx\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"CGyLXx\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"ggtitle\":{\n",
"\"text\":\"The Effect of Vitamin C on Tooth Growth in Guinea Pigs\"\n",
"},\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"group\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"color\":\"pen\",\n",
"\"width\":0.1,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"errorbar\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"shape\":21.0,\n",
"\"size\":5.0,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"point\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"theme\":{\n",
"\"legend_justification\":[1.0,0.0],\n",
"\"legend_position\":[1.0,0.0]\n",
"},\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"7\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=fc5b2f3a-20d0-4c35-b3ed-ddf55767b570 width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pi3LUPO .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pi3LUPO .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pi3LUPO .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pi3LUPO .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pi3LUPO .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pi3LUPO .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pi3LUPO .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pi3LUPO .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dnmhjQX .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pi3LUPO .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pi3LUPO .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dnmhjQX .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pi3LUPO .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pi3LUPO .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dnmhjQX .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dnmhjQX .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dnmhjQX .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pi3LUPO\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 22.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.960467432681952\" y1=\"0.0\" x2=\"0.960467432681952\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"77.79786204723487\" y1=\"0.0\" x2=\"77.79786204723487\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"154.6352566617878\" y1=\"0.0\" x2=\"154.6352566617878\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"231.47265127634066\" y1=\"0.0\" x2=\"231.47265127634066\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"308.31004589089355\" y1=\"0.0\" x2=\"308.31004589089355\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"385.1474405054464\" y1=\"0.0\" x2=\"385.1474405054464\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"461.9848351199994\" y1=\"0.0\" x2=\"461.9848351199994\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"538.8222297345523\" y1=\"0.0\" x2=\"538.8222297345523\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"615.6596243491051\" y1=\"0.0\" x2=\"615.6596243491051\" y2=\"338.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"313.17798888029756\" x2=\"655.0387890890636\" y2=\"313.17798888029756\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"250.95183916933615\" x2=\"655.0387890890636\" y2=\"250.95183916933615\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"188.72568945837477\" x2=\"655.0387890890636\" y2=\"188.72568945837477\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"126.4995397474134\" x2=\"655.0387890890636\" y2=\"126.4995397474134\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"64.27339003645204\" x2=\"655.0387890890636\" y2=\"64.27339003645204\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.047240325490634\" x2=\"655.0387890890636\" y2=\"2.047240325490634\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#c7KyQyt)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (655.0387890890636, 338.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"29.77449041313926\" y1=\"228.1770683751243\" x2=\"39.379164739958384\" y2=\"228.1770683751243\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"29.77449041313926\" y1=\"180.88519459479363\" x2=\"39.379164739958384\" y2=\"180.88519459479363\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"34.57682757654882\" y1=\"228.1770683751243\" x2=\"34.57682757654882\" y2=\"180.88519459479363\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"221.86797694952153\" y1=\"111.5652638167827\" x2=\"231.47265127634066\" y2=\"111.5652638167827\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"221.86797694952153\" y1=\"65.51791303067125\" x2=\"231.47265127634066\" y2=\"65.51791303067125\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"226.6703141129311\" y1=\"111.5652638167827\" x2=\"226.6703141129311\" y2=\"65.51791303067125\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"606.0549500222861\" y1=\"70.49600500754815\" x2=\"615.6596243491052\" y2=\"70.49600500754815\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"606.0549500222861\" y1=\"38.0139548584263\" x2=\"615.6596243491052\" y2=\"38.0139548584263\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"610.8572871856957\" y1=\"70.49600500754815\" x2=\"610.8572871856957\" y2=\"38.0139548584263\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"39.379164739958384\" y1=\"322.6363636363637\" x2=\"48.983839066777506\" y2=\"322.6363636363637\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"39.379164739958384\" y1=\"241.9912736109577\" x2=\"48.983839066777506\" y2=\"241.9912736109577\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"44.181501903367916\" y1=\"322.6363636363637\" x2=\"44.181501903367916\" y2=\"241.9912736109577\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"231.47265127634066\" y1=\"185.4899296734048\" x2=\"241.07732560315972\" y2=\"185.4899296734048\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"231.47265127634066\" y1=\"135.4601053057918\" x2=\"241.07732560315972\" y2=\"135.4601053057918\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"236.27498843975022\" y1=\"185.4899296734048\" x2=\"236.27498843975022\" y2=\"135.4601053057918\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"615.6596243491052\" y1=\"84.80801944106923\" x2=\"625.2642986759244\" y2=\"84.80801944106923\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"615.6596243491052\" y1=\"15.363636363636374\" x2=\"625.2642986759244\" y2=\"15.363636363636374\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"620.4619615125149\" y1=\"84.80801944106923\" x2=\"620.4619615125149\" y2=\"15.363636363636374\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M34.57682757654882 210.7537464560551 L34.57682757654882 210.7537464560551 L226.6703141129311 92.89741890349427 L610.8572871856957 51.081446297728235 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M44.181501903367916 276.09120365256456 L44.181501903367916 276.09120365256456 L236.27498843975022 166.69763246069445 L620.4619615125149 50.08582790235283 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffffff\" stroke=\"#ffa500\" stroke-width=\"1.6500000000000001\" cx=\"34.57682757654882\" cy=\"210.7537464560551\" r=\"6.325\" />\n",
" <circle fill=\"#ffffff\" stroke=\"#ffa500\" stroke-width=\"1.6500000000000001\" cx=\"226.6703141129311\" cy=\"92.89741890349427\" r=\"6.325\" />\n",
" <circle fill=\"#ffffff\" stroke=\"#ffa500\" stroke-width=\"1.6500000000000001\" cx=\"610.8572871856957\" cy=\"51.081446297728235\" r=\"6.325\" />\n",
" <circle fill=\"#ffffff\" stroke=\"#006400\" stroke-width=\"1.6500000000000001\" cx=\"44.181501903367916\" cy=\"276.09120365256456\" r=\"6.325\" />\n",
" <circle fill=\"#ffffff\" stroke=\"#006400\" stroke-width=\"1.6500000000000001\" cx=\"236.27498843975022\" cy=\"166.69763246069445\" r=\"6.325\" />\n",
" <circle fill=\"#ffffff\" stroke=\"#006400\" stroke-width=\"1.6500000000000001\" cx=\"620.4619615125149\" cy=\"50.08582790235283\" r=\"6.325\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"c1IoHvx\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"655.0387890890636\" height=\"338.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cJmPYrD\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"655.0387890890636\" height=\"338.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"c7KyQyt\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"655.0387890890636\" height=\"338.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 338.0 ) \">\n",
" <g transform=\"translate(0.960467432681952 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(77.79786204723487 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(154.6352566617878 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(231.47265127634066 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(308.31004589089355 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(385.1474405054464 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(461.9848351199994 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(538.8222297345523 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(615.6596243491051 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"655.0387890890636\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 313.17798888029756 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 250.95183916933615 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 188.72568945837477 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 126.4995397474134 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 64.27339003645204 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.047240325490634 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(38.9612109109364 15.8 ) \">\n",
" <text style=\"font-size:16.0px;\" y=\"0.0\" class=\"plot-title\">\n",
" <tspan>The Effect of Vitamin C on Tooth Growth in Guinea Pigs</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(15.0 191.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(366.4806054554682 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(637.3145735861904 281.5 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffffff\" stroke=\"#ffa500\" stroke-width=\"1.6500000000000001\" cx=\"10.5\" cy=\"10.5\" r=\"6.325\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffffff\" stroke=\"#006400\" stroke-width=\"1.6500000000000001\" cx=\"10.5\" cy=\"10.5\" r=\"6.325\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dnmhjQX\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"fc5b2f3a-20d0-4c35-b3ed-ddf55767b570\").style.display = \"none\";</script>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Finished graph\n",
"// - fixed size\n",
"// - point shape # 21 is filled circle \n",
"// - position legend in bottom right\n",
"val p1 = p +\n",
" xlab(\"Dose (mg)\") +\n",
" ylab(\"Tooth length (mm)\") +\n",
" scaleColorManual(listOf(\"orange\", \"dark_green\"), naValue = \"gray\") +\n",
" ggsize(700, 400)\n",
"p1 + geomErrorBar(color = \"pen\", \n",
" width = .1, \n",
" position = pd) {ymin = \"len_min\"; ymax = \"len_max\"; group = \"supp\"} +\n",
" geomLine(position = pd) {y = \"length\"} +\n",
" geomPoint(position = pd, size = 5, shape = 21) {y = \"length\"} +\n",
" theme().legendJustification(1,0).legendPosition(1,0) +\n",
" ggtitle(\"The Effect of Vitamin C on Tooth Growth in Guinea Pigs\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Error-bars on bar plot."
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.353887Z",
"iopub.status.busy": "2025-12-03T16:02:40.353460Z",
"iopub.status.idle": "2025-12-03T16:02:40.419680Z",
"shell.execute_reply": "2025-12-03T16:02:40.419755Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"color": "pen",
"geom": "bar",
"mapping": {
"fill": "supp",
"y": "length"
},
"position": "dodge",
"stat": "identity"
},
{
"color": "pen",
"geom": "errorbar",
"mapping": {
"group": "supp",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.9
},
"stat": "identity",
"width": 0.1
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
],
"theme": {
"legend_justification": [
0.0,
1.0
],
"legend_position": [
0.0,
1.0
]
}
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"jseMrm\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"jseMrm\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"y\":\"length\",\n",
"\"fill\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"color\":\"pen\",\n",
"\"position\":\"dodge\",\n",
"\"geom\":\"bar\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"group\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"color\":\"pen\",\n",
"\"width\":0.1,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.9\n",
"},\n",
"\"geom\":\"errorbar\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"theme\":{\n",
"\"legend_justification\":[0.0,1.0],\n",
"\"legend_position\":[0.0,1.0]\n",
"},\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"9\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=c562a773-7013-4674-be72-69fcf0bfb6cd width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#p0OmCp3 .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#p0OmCp3 .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dBMS8Aj .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dBMS8Aj .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p0OmCp3 .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dBMS8Aj .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dBMS8Aj .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dBMS8Aj .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"p0OmCp3\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"6.871036249185984\" y1=\"0.0\" x2=\"6.871036249185984\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"67.94691401972804\" y1=\"0.0\" x2=\"67.94691401972804\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"129.0227917902701\" y1=\"0.0\" x2=\"129.0227917902701\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"190.09866956081214\" y1=\"0.0\" x2=\"190.09866956081214\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"251.17454733135418\" y1=\"0.0\" x2=\"251.17454733135418\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"312.2504251018962\" y1=\"0.0\" x2=\"312.2504251018962\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"373.32630287243825\" y1=\"0.0\" x2=\"373.32630287243825\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"434.4021806429803\" y1=\"0.0\" x2=\"434.4021806429803\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"495.4780584135223\" y1=\"0.0\" x2=\"495.4780584135223\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"556.5539361840642\" y1=\"0.0\" x2=\"556.5539361840642\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"617.6298139546063\" y1=\"0.0\" x2=\"617.6298139546063\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"354.0\" x2=\"655.0387890890636\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"295.7312725297516\" x2=\"655.0387890890636\" y2=\"295.7312725297516\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"237.46254505950324\" x2=\"655.0387890890636\" y2=\"237.46254505950324\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"179.19381758925485\" x2=\"655.0387890890636\" y2=\"179.19381758925485\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"120.92509011900648\" x2=\"655.0387890890636\" y2=\"120.92509011900648\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"62.65636264875809\" x2=\"655.0387890890636\" y2=\"62.65636264875809\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"4.387635178509697\" x2=\"655.0387890890636\" y2=\"4.387635178509697\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cp4OJtm)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (655.0387890890636, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <rect x=\"556.5539361840644\" y=\"49.371092785541464\" height=\"304.62890721445854\" width=\"68.71036249185988\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(55,126,184)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"251.17454733135418\" y=\"158.56668806478692\" height=\"195.43331193521308\" width=\"68.71036249185983\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(55,126,184)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"98.48485290499906\" y=\"261.00311095748356\" height=\"92.99688904251644\" width=\"68.7103624918598\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(55,126,184)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"487.84357369220453\" y=\"50.303392425065454\" height=\"303.69660757493455\" width=\"68.71036249185983\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(228,26,28)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"182.46418483949438\" y=\"89.45997728507234\" height=\"264.54002271492766\" width=\"68.7103624918598\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(228,26,28)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"29.774490413139254\" y=\"199.82094711372278\" height=\"154.17905288627722\" width=\"68.7103624918598\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(228,26,28)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"60.31242929841027\" y1=\"216.13619080539232\" x2=\"67.94691401972804\" y2=\"216.13619080539232\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"60.31242929841027\" y1=\"171.85195792800354\" x2=\"67.94691401972804\" y2=\"171.85195792800354\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"64.12967165906915\" y1=\"216.13619080539232\" x2=\"64.12967165906915\" y2=\"171.85195792800354\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"213.0021237247654\" y1=\"106.94059552614686\" x2=\"220.63660844608313\" y2=\"106.94059552614686\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"213.0021237247654\" y1=\"63.82173719816308\" x2=\"220.63660844608313\" y2=\"63.82173719816308\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"216.81936608542424\" y1=\"106.94059552614686\" x2=\"216.81936608542424\" y2=\"63.82173719816308\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"518.3815125774755\" y1=\"68.48323539578291\" x2=\"526.0159972987933\" y2=\"68.48323539578291\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"518.3815125774755\" y1=\"38.06695965631326\" x2=\"526.0159972987933\" y2=\"38.06695965631326\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"522.1987549381345\" y1=\"68.48323539578291\" x2=\"522.1987549381345\" y2=\"38.06695965631326\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"129.02279179027008\" y1=\"304.58811910522934\" x2=\"136.65727651158784\" y2=\"304.58811910522934\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"129.02279179027008\" y1=\"229.07184830378748\" x2=\"136.65727651158784\" y2=\"229.07184830378748\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"132.84003415092897\" y1=\"304.58811910522934\" x2=\"132.84003415092897\" y2=\"229.07184830378748\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"281.7124862166252\" y1=\"176.16384376080194\" x2=\"289.34697093794296\" y2=\"176.16384376080194\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"281.7124862166252\" y1=\"129.31578687472222\" x2=\"289.34697093794296\" y2=\"129.31578687472222\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"285.5297285772841\" y1=\"176.16384376080194\" x2=\"285.5297285772841\" y2=\"129.31578687472222\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"587.0918750693354\" y1=\"81.88504271394004\" x2=\"594.7263597906532\" y2=\"81.88504271394004\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"587.0918750693354\" y1=\"16.85714285714289\" x2=\"594.7263597906532\" y2=\"16.85714285714289\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"590.9091174299942\" y1=\"81.88504271394004\" x2=\"590.9091174299942\" y2=\"16.85714285714289\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cLVGMDl\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"655.0387890890636\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cp4OJtm\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"655.0387890890636\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(6.871036249185984 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(67.94691401972804 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(129.0227917902701 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(190.09866956081214 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(251.17454733135418 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(312.2504251018962 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(373.32630287243825 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(434.4021806429803 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(495.4780584135223 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(556.5539361840642 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(617.6298139546063 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"655.0387890890636\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 354.0 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>0</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 295.7312725297516 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 237.46254505950324 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 179.19381758925485 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 120.92509011900648 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 62.65636264875809 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 4.387635178509697 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(366.4806054554682 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(38.9612109109364 6.0 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(228,26,28)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"21.0\" width=\"21.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" fill=\"rgb(55,126,184)\" fill-opacity=\"1.0\" stroke-width=\"1.5\">\n",
" </rect>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dBMS8Aj\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"c562a773-7013-4674-be72-69fcf0bfb6cd\").style.display = \"none\";</script>"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Plot error ranges on Bar plot\n",
"p1 + \n",
" geomBar(stat = Stat.identity, \n",
" position = positionDodge(), \n",
" color = \"pen\") {y = \"length\"; fill = \"supp\"} +\n",
" geomErrorBar(width = .1, \n",
" position = positionDodge(0.9),\n",
" color = \"pen\") {\n",
" ymin = \"len_min\"\n",
" ymax = \"len_max\" \n",
" group = \"supp\"} +\n",
" theme().legendJustification(0,1).legendPosition(0,1)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Crossbars."
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.421860Z",
"iopub.status.busy": "2025-12-03T16:02:40.421646Z",
"iopub.status.idle": "2025-12-03T16:02:40.469869Z",
"shell.execute_reply": "2025-12-03T16:02:40.469709Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"fatten": 5.0,
"geom": "crossbar",
"mapping": {
"color": "supp",
"y": "length",
"ymax": "len_max",
"ymin": "len_min"
},
"position": "dodge",
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
]
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"3si3jy\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"3si3jy\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"y\":\"length\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":\"dodge\",\n",
"\"geom\":\"crossbar\",\n",
"\"fatten\":5.0,\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"11\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=9e15fc19-202a-4dae-9857-c2b56d9445f0 width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#p3L9xPn .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#p3L9xPn .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p3L9xPn .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p3L9xPn .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#p3L9xPn .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p3L9xPn .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p3L9xPn .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p3L9xPn .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#djAOQMX .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p3L9xPn .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p3L9xPn .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#djAOQMX .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p3L9xPn .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p3L9xPn .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#djAOQMX .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#djAOQMX .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#djAOQMX .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"p3L9xPn\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"6.276433874215954\" y1=\"0.0\" x2=\"6.276433874215954\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"62.06695720057995\" y1=\"0.0\" x2=\"62.06695720057995\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"117.85748052694397\" y1=\"0.0\" x2=\"117.85748052694397\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"173.64800385330796\" y1=\"0.0\" x2=\"173.64800385330796\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"229.43852717967195\" y1=\"0.0\" x2=\"229.43852717967195\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"285.22905050603595\" y1=\"0.0\" x2=\"285.22905050603595\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"341.01957383239994\" y1=\"0.0\" x2=\"341.01957383239994\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"396.8100971587639\" y1=\"0.0\" x2=\"396.8100971587639\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"452.6006204851279\" y1=\"0.0\" x2=\"452.6006204851279\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"508.3911438114918\" y1=\"0.0\" x2=\"508.3911438114918\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"564.1816671378558\" y1=\"0.0\" x2=\"564.1816671378558\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"598.353362675254\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"598.353362675254\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"598.353362675254\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"598.353362675254\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"598.353362675254\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"598.353362675254\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#caY5Psu)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (598.353362675254, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <rect x=\"25.454426267653588\" y=\"189.44780735667734\" height=\"49.53054236164806\" width=\"62.764338742159495\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"164.9307345835636\" y=\"68.61935270076219\" height=\"48.22710703634152\" width=\"62.76433874215945\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"443.8833512153835\" y=\"39.81343201148792\" height=\"34.01966199050037\" width=\"62.76433874215945\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"91.70567271771081\" y=\"253.44648182922788\" height=\"84.462609079863\" width=\"62.76433874215955\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"231.18198103362084\" y=\"141.87241798298905\" height=\"52.398100077322454\" width=\"62.76433874215951\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <rect x=\"510.13459766544065\" y=\"16.090909090909122\" height=\"72.73169115210425\" width=\"62.76433874215968\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"25.454426267653588\" y1=\"220.73025516403402\" x2=\"88.21876500981308\" y2=\"220.73025516403402\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" <line x1=\"164.9307345835636\" y1=\"97.29492985750579\" x2=\"227.69507332572306\" y2=\"97.29492985750579\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" <line x1=\"443.8833512153835\" y1=\"53.49950292720649\" x2=\"506.647689957543\" y2=\"53.49950292720649\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" <line x1=\"91.70567271771081\" y1=\"289.1606097426268\" x2=\"154.4700114598703\" y2=\"289.1606097426268\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" <line x1=\"231.18198103362084\" y1=\"174.58864464818294\" x2=\"293.94631977578035\" y2=\"174.58864464818294\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" <line x1=\"510.13459766544065\" y1=\"52.45675466696122\" x2=\"572.8989364076003\" y2=\"52.45675466696122\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"8.25\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"caY5Psu\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(6.276433874215954 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(62.06695720057995 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(117.85748052694397 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(173.64800385330796 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(229.43852717967195 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(285.22905050603595 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(341.01957383239994 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(396.8100971587639 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(452.6006204851279 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(508.3911438114918 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(564.1816671378558 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"598.353362675254\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(338.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(640.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"2.759999999999999\" y=\"0.8250000000000001\" height=\"19.35\" width=\"15.480000000000002\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"2.759999999999999\" y1=\"10.5\" x2=\"18.240000000000002\" y2=\"10.5\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <rect x=\"2.759999999999999\" y=\"0.8250000000000001\" height=\"19.35\" width=\"15.480000000000002\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </rect>\n",
" <line x1=\"2.759999999999999\" y1=\"10.5\" x2=\"18.240000000000002\" y2=\"10.5\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"djAOQMX\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"9e15fc19-202a-4dae-9857-c2b56d9445f0\").style.display = \"none\";</script>"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Thickness of the horizontal mid-line can be adjusted using `fatten` parameter.\n",
"p1 + geomCrossbar(fatten = 5.0) {\n",
" ymin=\"len_min\"\n",
" ymax=\"len_max\"\n",
" y=\"length\"\n",
" color=\"supp\"\n",
"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Line-range."
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.472028Z",
"iopub.status.busy": "2025-12-03T16:02:40.471650Z",
"iopub.status.idle": "2025-12-03T16:02:40.517004Z",
"shell.execute_reply": "2025-12-03T16:02:40.516845Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"geom": "linerange",
"mapping": {
"color": "supp",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
]
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"i6kcZ6\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"i6kcZ6\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"linerange\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"13\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=438a9d96-6272-4f86-a69b-3334f6bdf57d width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pbKWQUm .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pbKWQUm .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pbKWQUm .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pbKWQUm .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pbKWQUm .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pbKWQUm .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pbKWQUm .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pbKWQUm .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dVz7c1K .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pbKWQUm .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pbKWQUm .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dVz7c1K .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pbKWQUm .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pbKWQUm .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dVz7c1K .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dVz7c1K .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dVz7c1K .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pbKWQUm\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"67.32589997314707\" y1=\"0.0\" x2=\"67.32589997314707\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"138.66460193144857\" y1=\"0.0\" x2=\"138.66460193144857\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"210.00330388975007\" y1=\"0.0\" x2=\"210.00330388975007\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"281.3420058480516\" y1=\"0.0\" x2=\"281.3420058480516\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"352.6807078063531\" y1=\"0.0\" x2=\"352.6807078063531\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"424.0194097646545\" y1=\"0.0\" x2=\"424.0194097646545\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"495.358111722956\" y1=\"0.0\" x2=\"495.358111722956\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"566.6968136812575\" y1=\"0.0\" x2=\"566.6968136812575\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"598.353362675254\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"598.353362675254\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"598.353362675254\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"598.353362675254\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"598.353362675254\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"598.353362675254\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cUz3TCc)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (598.353362675254, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <line x1=\"27.197880121602452\" y1=\"238.9783497183254\" x2=\"27.197880121602452\" y2=\"189.44780735667734\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"205.54463501735623\" y1=\"116.84645973710371\" x2=\"205.54463501735623\" y2=\"68.61935270076219\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"562.2381448088638\" y1=\"73.83309400198829\" x2=\"562.2381448088638\" y2=\"39.81343201148792\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"36.11521786639011\" y1=\"337.9090909090909\" x2=\"36.11521786639011\" y2=\"253.44648182922788\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"214.46197276214392\" y1=\"194.2705180603115\" x2=\"214.46197276214392\" y2=\"141.87241798298905\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <line x1=\"571.1554825536515\" y1=\"88.82260024301337\" x2=\"571.1554825536515\" y2=\"16.090909090909122\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M27.197880121602452 220.73025516403402 L27.197880121602452 220.73025516403402 L205.54463501735623 97.29492985750579 L562.2381448088638 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M36.11521786639011 289.1606097426268 L36.11521786639011 289.1606097426268 L214.46197276214392 174.58864464818294 L571.1554825536515 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"ce8POMH\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cUz3TCc\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(67.32589997314707 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(138.66460193144857 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(210.00330388975007 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(281.3420058480516 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(352.6807078063531 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(424.0194097646545 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(495.358111722956 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(566.6968136812575 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"598.353362675254\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(338.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(640.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dVz7c1K\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"438a9d96-6272-4f86-a69b-3334f6bdf57d\").style.display = \"none\";</script>"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"p1 + geomLineRange(position=pd) {ymin=\"len_min\"; ymax=\"len_max\"; color=\"supp\"} +\n",
" geomLine(position=pd) {y=\"length\"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Point-range."
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.518944Z",
"iopub.status.busy": "2025-12-03T16:02:40.518721Z",
"iopub.status.idle": "2025-12-03T16:02:40.566007Z",
"shell.execute_reply": "2025-12-03T16:02:40.566129Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"geom": "pointrange",
"mapping": {
"color": "supp",
"y": "length",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
]
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"MKbCoV\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"MKbCoV\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"y\":\"length\",\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"pointrange\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"15\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=437695eb-930a-4db8-b466-aee70fba2f51 width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#p00KrZo .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#p00KrZo .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p00KrZo .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p00KrZo .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#p00KrZo .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p00KrZo .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p00KrZo .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p00KrZo .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#do9Bp6o .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p00KrZo .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#p00KrZo .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#do9Bp6o .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p00KrZo .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#p00KrZo .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#do9Bp6o .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#do9Bp6o .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#do9Bp6o .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"p00KrZo\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"67.32589997314707\" y1=\"0.0\" x2=\"67.32589997314707\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"138.66460193144857\" y1=\"0.0\" x2=\"138.66460193144857\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"210.00330388975007\" y1=\"0.0\" x2=\"210.00330388975007\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"281.3420058480516\" y1=\"0.0\" x2=\"281.3420058480516\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"352.6807078063531\" y1=\"0.0\" x2=\"352.6807078063531\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"424.0194097646545\" y1=\"0.0\" x2=\"424.0194097646545\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"495.358111722956\" y1=\"0.0\" x2=\"495.358111722956\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"566.6968136812575\" y1=\"0.0\" x2=\"566.6968136812575\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"598.353362675254\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"598.353362675254\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"598.353362675254\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"598.353362675254\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"598.353362675254\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"598.353362675254\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cQKs30l)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (598.353362675254, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <line x1=\"27.197880121602452\" y1=\"238.9783497183254\" x2=\"27.197880121602452\" y2=\"189.44780735667734\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffa500\" stroke=\"#ffa500\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"27.197880121602452\" cy=\"220.73025516403402\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"205.54463501735623\" y1=\"116.84645973710371\" x2=\"205.54463501735623\" y2=\"68.61935270076219\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffa500\" stroke=\"#ffa500\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"205.54463501735623\" cy=\"97.29492985750579\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"562.2381448088638\" y1=\"73.83309400198829\" x2=\"562.2381448088638\" y2=\"39.81343201148792\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffa500\" stroke=\"#ffa500\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"562.2381448088638\" cy=\"53.49950292720649\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"36.11521786639011\" y1=\"337.9090909090909\" x2=\"36.11521786639011\" y2=\"253.44648182922788\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#006400\" stroke=\"#006400\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"36.11521786639011\" cy=\"289.1606097426268\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"214.46197276214392\" y1=\"194.2705180603115\" x2=\"214.46197276214392\" y2=\"141.87241798298905\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#006400\" stroke=\"#006400\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"214.46197276214392\" cy=\"174.58864464818294\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"571.1554825536515\" y1=\"88.82260024301337\" x2=\"571.1554825536515\" y2=\"16.090909090909122\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#006400\" stroke=\"#006400\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"571.1554825536515\" cy=\"52.45675466696122\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M27.197880121602452 220.73025516403402 L27.197880121602452 220.73025516403402 L205.54463501735623 97.29492985750579 L562.2381448088638 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M36.11521786639011 289.1606097426268 L36.11521786639011 289.1606097426268 L214.46197276214392 174.58864464818294 L571.1554825536515 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"cnqtYVY\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cQKs30l\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(67.32589997314707 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(138.66460193144857 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(210.00330388975007 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(281.3420058480516 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(352.6807078063531 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(424.0194097646545 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(495.358111722956 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(566.6968136812575 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"598.353362675254\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(338.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(640.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#ffa500\" stroke=\"#ffa500\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <circle fill=\"#006400\" stroke=\"#006400\" stroke-opacity=\"0.0\" stroke-width=\"0.0\" cx=\"10.5\" cy=\"10.5\" r=\"4.125\" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"do9Bp6o\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"437695eb-930a-4db8-b466-aee70fba2f51\").style.display = \"none\";</script>"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Point-range is the same as line-range but with an added mid-point.\n",
"p1 + geomPointRange(position=pd) {y=\"length\"; ymin=\"len_min\"; ymax=\"len_max\"; color=\"supp\"} +\n",
" geomLine(position=pd) {y=\"length\"}"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"execution": {
"iopub.execute_input": "2025-12-03T16:02:40.567963Z",
"iopub.status.busy": "2025-12-03T16:02:40.567752Z",
"iopub.status.idle": "2025-12-03T16:02:40.615384Z",
"shell.execute_reply": "2025-12-03T16:02:40.615507Z"
}
},
"outputs": [
{
"data": {
"application/plot+json": {
"apply_color_scheme": true,
"output": {
"data": {
"dose": [
0.5,
1.0,
2.0,
0.5,
1.0,
2.0
],
"len_max": [
15.63,
24.9,
27.11,
10.72,
19.28,
28.93
],
"len_min": [
11.83,
21.2,
24.5,
4.24,
15.26,
23.35
],
"length": [
13.23,
22.7,
26.06,
7.98,
16.77,
26.14
],
"supp": [
"OJ",
"OJ",
"OJ",
"VC",
"VC",
"VC"
]
},
"data_meta": {
"series_annotations": [
{
"column": "supp",
"type": "str"
},
{
"column": "dose",
"type": "float"
},
{
"column": "length",
"type": "float"
},
{
"column": "len_min",
"type": "float"
},
{
"column": "len_max",
"type": "float"
}
]
},
"ggsize": {
"height": 400.0,
"width": 700.0
},
"guides": {
"x": {
"title": "Dose (mg)"
},
"y": {
"title": "Tooth length (mm)"
}
},
"kind": "plot",
"layers": [
{
"geom": "line",
"mapping": {
"y": "length"
},
"position": {
"name": "dodge",
"width": 0.1
},
"stat": "identity"
},
{
"color": "rgb(230, 230, 230)",
"fatten": 1.0,
"geom": "pointrange",
"linewidth": 5.0,
"mapping": {
"fill": "supp",
"y": "length",
"ymax": "len_max",
"ymin": "len_min"
},
"position": {
"name": "dodge",
"width": 0.1
},
"shape": 23.0,
"size": 5.0,
"stat": "identity"
}
],
"mapping": {
"color": "supp",
"x": "dose"
},
"scales": [
{
"aesthetic": "color",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
},
{
"aesthetic": "fill",
"na_value": "gray",
"values": [
"orange",
"dark_green"
]
}
]
},
"output_type": "lets_plot_spec",
"swing_enabled": true
},
"text/html": [
" <div id=\"aW0goY\" ></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" \n",
" (function() {\n",
" // ----------\n",
" \n",
" const forceImmediateRender = false;\n",
" const responsive = false;\n",
" \n",
" let sizing = {\n",
" width_mode: \"MIN\",\n",
" height_mode: \"SCALED\",\n",
" width: null, \n",
" height: null \n",
" };\n",
" \n",
" const preferredWidth = document.body.dataset.letsPlotPreferredWidth;\n",
" if (preferredWidth !== undefined) {\n",
" sizing = {\n",
" width_mode: 'FIXED',\n",
" height_mode: 'SCALED',\n",
" width: parseFloat(preferredWidth)\n",
" };\n",
" }\n",
" \n",
" const containerDiv = document.getElementById(\"aW0goY\");\n",
" let fig = null;\n",
" \n",
" function renderPlot() {\n",
" if (fig === null) {\n",
" const plotSpec = {\n",
"\"mapping\":{\n",
"\"x\":\"dose\",\n",
"\"color\":\"supp\"\n",
"},\n",
"\"guides\":{\n",
"\"x\":{\n",
"\"title\":\"Dose (mg)\"\n",
"},\n",
"\"y\":{\n",
"\"title\":\"Tooth length (mm)\"\n",
"}\n",
"},\n",
"\"data\":{\n",
"\"dose\":[0.5,1.0,2.0,0.5,1.0,2.0],\n",
"\"supp\":[\"OJ\",\"OJ\",\"OJ\",\"VC\",\"VC\",\"VC\"],\n",
"\"length\":[13.23,22.7,26.06,7.98,16.77,26.14],\n",
"\"len_min\":[11.83,21.2,24.5,4.24,15.26,23.35],\n",
"\"len_max\":[15.63,24.9,27.11,10.72,19.28,28.93]\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":700.0,\n",
"\"height\":400.0\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"aesthetic\":\"color\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"},{\n",
"\"aesthetic\":\"fill\",\n",
"\"na_value\":\"gray\",\n",
"\"values\":[\"orange\",\"dark_green\"]\n",
"}],\n",
"\"layers\":[{\n",
"\"mapping\":{\n",
"\"y\":\"length\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"line\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"mapping\":{\n",
"\"y\":\"length\",\n",
"\"ymin\":\"len_min\",\n",
"\"ymax\":\"len_max\",\n",
"\"fill\":\"supp\"\n",
"},\n",
"\"stat\":\"identity\",\n",
"\"color\":\"rgb(230, 230, 230)\",\n",
"\"shape\":23.0,\n",
"\"size\":5.0,\n",
"\"position\":{\n",
"\"name\":\"dodge\",\n",
"\"width\":0.1\n",
"},\n",
"\"geom\":\"pointrange\",\n",
"\"linewidth\":5.0,\n",
"\"fatten\":1.0,\n",
"\"data\":{\n",
"}\n",
"}],\n",
"\"data_meta\":{\n",
"\"series_annotations\":[{\n",
"\"type\":\"str\",\n",
"\"column\":\"supp\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"dose\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"length\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_min\"\n",
"},{\n",
"\"type\":\"float\",\n",
"\"column\":\"len_max\"\n",
"}]\n",
"},\n",
"\"spec_id\":\"17\"\n",
"};\n",
" window.letsPlotCall(function() { fig = LetsPlot.buildPlotFromProcessedSpecs(plotSpec, containerDiv, sizing); });\n",
" } else {\n",
" fig.updateView({});\n",
" }\n",
" }\n",
" \n",
" const renderImmediately = \n",
" forceImmediateRender || (\n",
" sizing.width_mode === 'FIXED' && \n",
" (sizing.height_mode === 'FIXED' || sizing.height_mode === 'SCALED')\n",
" );\n",
" \n",
" if (renderImmediately) {\n",
" renderPlot();\n",
" }\n",
" \n",
" if (!renderImmediately || responsive) {\n",
" // Set up observer for initial sizing or continuous monitoring\n",
" var observer = new ResizeObserver(function(entries) {\n",
" for (let entry of entries) {\n",
" if (entry.contentBoxSize && \n",
" entry.contentBoxSize[0].inlineSize > 0) {\n",
" if (!responsive && observer) {\n",
" observer.disconnect();\n",
" observer = null;\n",
" }\n",
" renderPlot();\n",
" if (!responsive) {\n",
" break;\n",
" }\n",
" }\n",
" }\n",
" });\n",
" \n",
" observer.observe(containerDiv);\n",
" }\n",
" \n",
" // ----------\n",
" })();\n",
" \n",
" </script> <svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" display=\"block\" class=\"plt-container\" id=fa0d6c29-fa1c-4646-b00b-3e3cec8e7997 width=\"100%\" height=\"100%\" style=\"max-width: 700.0px; max-height: 400.0px;\" viewBox=\"0 0 700.0 400.0\" preserveAspectRatio=\"xMinYMin meet\">\n",
" <style type=\"text/css\">\n",
" .plt-container {\n",
" font-family: sans-serif;\n",
" user-select: none;\n",
" -webkit-user-select: none;\n",
" -moz-user-select: none;\n",
" -ms-user-select: none;\n",
"}\n",
"text {\n",
" text-rendering: optimizeLegibility;\n",
"}\n",
"#pwLPDP6 .plot-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 16.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .plot-subtitle {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .plot-caption {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .hyperlink-element {\n",
"fill: #118ed8;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"\n",
"}\n",
"#pwLPDP6 .legend-title {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .legend-item {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .axis-title-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .axis-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dtGsCRp .axis-tooltip-text-x {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .axis-title-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 15.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .axis-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dtGsCRp .axis-tooltip-text-y {\n",
"fill: #ffffff;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .facet-strip-text-x {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#pwLPDP6 .facet-strip-text-y {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dtGsCRp .tooltip-text {\n",
"fill: #474747;\n",
"font-weight: normal;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dtGsCRp .tooltip-title {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"#dtGsCRp .tooltip-label {\n",
"fill: #474747;\n",
"font-weight: bold;\n",
"font-style: normal;\n",
"font-family: sans-serif;\n",
"font-size: 13.0px;\n",
"\n",
"}\n",
"\n",
" </style>\n",
" <g id=\"pwLPDP6\">\n",
" <path fill-rule=\"evenodd\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\">\n",
" </path>\n",
" <g transform=\"translate(21.0 6.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"67.32589997314707\" y1=\"0.0\" x2=\"67.32589997314707\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"138.66460193144857\" y1=\"0.0\" x2=\"138.66460193144857\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"210.00330388975007\" y1=\"0.0\" x2=\"210.00330388975007\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"281.3420058480516\" y1=\"0.0\" x2=\"281.3420058480516\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"352.6807078063531\" y1=\"0.0\" x2=\"352.6807078063531\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"424.0194097646545\" y1=\"0.0\" x2=\"424.0194097646545\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"495.358111722956\" y1=\"0.0\" x2=\"495.358111722956\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"566.6968136812575\" y1=\"0.0\" x2=\"566.6968136812575\" y2=\"354.0\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"328.0029824367613\" x2=\"598.353362675254\" y2=\"328.0029824367613\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"262.8312161714349\" x2=\"598.353362675254\" y2=\"262.8312161714349\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"197.65944990610848\" x2=\"598.353362675254\" y2=\"197.65944990610848\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"132.48768364078205\" x2=\"598.353362675254\" y2=\"132.48768364078205\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"67.31591737545563\" x2=\"598.353362675254\" y2=\"67.31591737545563\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" <line x1=\"0.0\" y1=\"2.1441511101292576\" x2=\"598.353362675254\" y2=\"2.1441511101292576\" stroke=\"rgb(233,233,233)\" stroke-opacity=\"1.0\" stroke-width=\"1.0\" fill=\"none\">\n",
" </line>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g clip-path=\"url(#cZZekZo)\" clip-bounds-jfx=\"[rect (17.961210910936405, 0.0), (598.353362675254, 354.0)]\">\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g>\n",
" <g>\n",
" <g>\n",
" <path d=\"M27.197880121602452 220.73025516403402 L27.197880121602452 220.73025516403402 L205.54463501735623 97.29492985750579 L562.2381448088638 53.49950292720649 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" <g>\n",
" <path d=\"M36.11521786639011 289.1606097426268 L36.11521786639011 289.1606097426268 L214.46197276214392 174.58864464818294 L571.1554825536515 52.45675466696122 \" fill=\"none\" stroke-width=\"1.6500000000000001\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\">\n",
" </path>\n",
" </g>\n",
" </g>\n",
" <g>\n",
" <line x1=\"27.197880121602452\" y1=\"238.9783497183254\" x2=\"27.197880121602452\" y2=\"189.44780735667734\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#ffa500\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M27.197880121602452 214.06352897507622 L27.197880121602452 214.06352897507622 L33.864606310560255 220.73025516403402 L27.197880121602452 227.39698135299184 L20.53115393264465 220.73025516403402 Z\" transform=\"rotate(0.0 27.197880121602452 220.73025516403402 ) \" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"205.54463501735623\" y1=\"116.84645973710371\" x2=\"205.54463501735623\" y2=\"68.61935270076219\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#ffa500\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M205.54463501735623 90.62820366854798 L205.54463501735623 90.62820366854798 L212.21136120631405 97.29492985750579 L205.54463501735623 103.96165604646359 L198.87790882839843 97.29492985750579 Z\" transform=\"rotate(0.0 205.54463501735623 97.29492985750579 ) \" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"562.2381448088638\" y1=\"73.83309400198829\" x2=\"562.2381448088638\" y2=\"39.81343201148792\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#ffa500\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M562.2381448088638 46.83277673824869 L562.2381448088638 46.83277673824869 L568.9048709978216 53.49950292720649 L562.2381448088638 60.166229116164295 L555.571418619906 53.49950292720649 Z\" transform=\"rotate(0.0 562.2381448088638 53.49950292720649 ) \" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"36.11521786639011\" y1=\"337.9090909090909\" x2=\"36.11521786639011\" y2=\"253.44648182922788\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#006400\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M36.11521786639011 282.493883553669 L36.11521786639011 282.493883553669 L42.781944055347914 289.1606097426268 L36.11521786639011 295.82733593158457 L29.448491677432308 289.1606097426268 Z\" transform=\"rotate(0.0 36.11521786639011 289.1606097426268 ) \" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"214.46197276214392\" y1=\"194.2705180603115\" x2=\"214.46197276214392\" y2=\"141.87241798298905\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#006400\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M214.46197276214392 167.92191845922514 L214.46197276214392 167.92191845922514 L221.12869895110174 174.58864464818294 L214.46197276214392 181.25537083714076 L207.79524657318612 174.58864464818294 Z\" transform=\"rotate(0.0 214.46197276214392 174.58864464818294 ) \" />\n",
" </g>\n",
" </g>\n",
" <line x1=\"571.1554825536515\" y1=\"88.82260024301337\" x2=\"571.1554825536515\" y2=\"16.090909090909122\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"none\" stroke-width=\"11.0\">\n",
" </line>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#006400\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M571.1554825536515 45.790028478003414 L571.1554825536515 45.790028478003414 L577.8222087426093 52.45675466696122 L571.1554825536515 59.12348085591902 L564.4887563646937 52.45675466696122 Z\" transform=\"rotate(0.0 571.1554825536515 52.45675466696122 ) \" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <defs>\n",
" <clipPath id=\"c8AJMrl\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" <defs>\n",
" <clipPath id=\"cZZekZo\">\n",
" <rect x=\"17.961210910936405\" y=\"0.0\" width=\"598.353362675254\" height=\"354.0\">\n",
" </rect>\n",
" </clipPath>\n",
" </defs>\n",
" </g>\n",
" <g>\n",
" <g transform=\"translate(17.961210910936405 354.0 ) \">\n",
" <g transform=\"translate(67.32589997314707 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(138.66460193144857 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>0.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(210.00330388975007 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(281.3420058480516 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(352.6807078063531 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.4</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(424.0194097646545 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.6</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(495.358111722956 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>1.8</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(566.6968136812575 0.0 ) \">\n",
" <line stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" x2=\"0.0\" y2=\"4.0\">\n",
" </line>\n",
" <g transform=\"translate(0.0 6.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-x\" text-anchor=\"middle\" dy=\"0.7em\">\n",
" <tspan>2</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <line x1=\"0.0\" y1=\"0.0\" x2=\"598.353362675254\" y2=\"0.0\" stroke-width=\"1.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\">\n",
" </line>\n",
" </g>\n",
" <g transform=\"translate(17.961210910936405 0.0 ) \">\n",
" <g transform=\"translate(0.0 328.0029824367613 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>5</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 262.8312161714349 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>10</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 197.65944990610848 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>15</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 132.48768364078205 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>20</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 67.31591737545563 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>25</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 2.1441511101292576 ) \">\n",
" <g transform=\"translate(-2.0 0.0 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"axis-text-y\" text-anchor=\"end\" dy=\"0.35em\">\n",
" <tspan>30</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(15.0 183.0 ) rotate(-90.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-y\" text-anchor=\"middle\">\n",
" <tspan>Tooth length (mm)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(338.1378922485634 394.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"axis-title-x\" text-anchor=\"middle\">\n",
" <tspan>Dose (mg)</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(640.3145735861904 143.75 ) \">\n",
" <rect x=\"0.0\" y=\"0.0\" height=\"78.5\" width=\"56.685426413809644\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\">\n",
" </rect>\n",
" <g transform=\"translate(5.0 5.0 ) \">\n",
" <g transform=\"translate(0.0 12.0 ) \">\n",
" <text style=\"font-size:15.0px;\" y=\"0.0\" class=\"legend-title\">\n",
" <tspan>supp</tspan>\n",
" </text>\n",
" </g>\n",
" <g transform=\"translate(0.0 22.5 ) \">\n",
" <g transform=\"\">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(255,165,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"rgb(255,165,0)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#ffa500\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M10.5 5.208273811042196 L10.5 5.208273811042196 L15.791726188957803 10.5 L10.5 15.791726188957803 L5.208273811042196 10.5 Z\" transform=\"rotate(0.0 10.5 10.5 ) \" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>OJ</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(0.0 23.0 ) \">\n",
" <g>\n",
" <g transform=\"translate(1.0 1.0 ) \">\n",
" <g>\n",
" <line x1=\"0.0\" y1=\"10.5\" x2=\"21.0\" y2=\"10.5\" stroke=\"rgb(0,100,0)\" stroke-opacity=\"1.0\" fill=\"rgb(255,255,255)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g>\n",
" <line x1=\"10.5\" y1=\"0.0\" x2=\"10.5\" y2=\"21.0\" stroke=\"rgb(230,230,230)\" stroke-opacity=\"1.0\" fill=\"rgb(0,100,0)\" fill-opacity=\"1.0\" stroke-width=\"1.6500000000000001\">\n",
" </line>\n",
" </g>\n",
" <g>\n",
" <g >\n",
" <path fill=\"#006400\" stroke=\"#e6e6e6\" stroke-width=\"1.6500000000000001\" d=\"M10.5 5.208273811042196 L10.5 5.208273811042196 L15.791726188957803 10.5 L10.5 15.791726188957803 L5.208273811042196 10.5 Z\" transform=\"rotate(0.0 10.5 10.5 ) \" />\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <g transform=\"translate(26.9903027277341 11.5 ) \">\n",
" <text style=\"font-size:13.0px;\" y=\"0.0\" class=\"legend-item\" dy=\"0.35em\">\n",
" <tspan>VC</tspan>\n",
" </text>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" </g>\n",
" <path fill=\"rgb(0,0,0)\" fill-opacity=\"0.0\" stroke=\"rgb(71,71,71)\" stroke-opacity=\"1.0\" stroke-width=\"0.0\" d=\"M0.0 0.0 L0.0 400.0 L700.0 400.0 L700.0 0.0 Z\" pointer-events=\"none\">\n",
" </path>\n",
" </g>\n",
" <g id=\"dtGsCRp\">\n",
" </g>\n",
"</svg>\n",
" <script>document.getElementById(\"fa0d6c29-fa1c-4646-b00b-3e3cec8e7997\").style.display = \"none\";</script>"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"// Size of the mid-point can be adjuasted using `fatten` parameter - multiplication factor relative to the line size.\n",
"p1 + geomLine(position = pd) {y = \"length\"} +\n",
" geomPointRange(position = pd, \n",
" color = \"rgb(230, 230, 230)\", \n",
" size = 5, \n",
" linewidth = 5, \n",
" shape = 23, fatten = 1.0) {\n",
" y = \"length\"\n",
" ymin = \"len_min\"\n",
" ymax = \"len_max\"\n",
" fill = \"supp\"\n",
" } +\n",
" scaleFillManual(listOf(\"orange\", \"dark_green\"), naValue=\"gray\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Kotlin",
"language": "kotlin",
"name": "kotlin"
},
"language_info": {
"codemirror_mode": "text/x-kotlin",
"file_extension": ".kt",
"mimetype": "text/x-kotlin",
"name": "kotlin",
"nbconvert_exporter": "",
"pygments_lexer": "kotlin",
"version": "2.2.20-Beta2"
}
},
"nbformat": 4,
"nbformat_minor": 4
}