(************** Content-type: application/mathematica ************** Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 123862, 2409]*) (*NotebookOutlinePosition[ 124500, 2431]*) (* CellTagsIndexPosition[ 124456, 2427]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["A box and whisker function", "Subtitle"], Cell[CellGroupData[{ Cell["Getting the necessary tools", "Subsection"], Cell["\<\ To make the function work we will need to be able to calculate the \ mean and quartiles of a distribution. The functions to do that are contained \ in the package Statistics`DescriptiveStatistics` which we load with the \ following command.\ \>", "Text"], Cell[BoxData[ \(<< Statistics`DescriptiveStatistics`\)], "Input"] }, Open ]], Cell[CellGroupData[{ Cell["Some totally irrelevant data", "Subsection"], Cell[BoxData[ \(\(testdata\ = \ {{3, 2, 5, 1, 5, 7}, {4, 3\ , 8, 2, 3}, {9, 4, 8, 0, 2, 5, 3, 9}};\)\)], "Input"] }, Open ]], Cell[CellGroupData[{ Cell["The function", "Subsection"], Cell["\<\ All that we need to feed to our function are the data and the color \ of the boxes. I tend to use Hue for color since it is easy to work with and \ goes from red to yellow to green to blue to purple to red as you feed it \ values from zero to one.\ \>", "Text"], Cell[BoxData[""], "Input"], Cell[BoxData[ \(BoxWhisker[datalis_, color_, pltratio_: 1/GoldenRatio]\ := \ Module[{incrmnt, data2, data3, grphicsprim, plots}, \[IndentingNewLine]incrmnt\ = \ 1/\((2\ Length[datalis])\); \[IndentingNewLine]data2\ = \ Map[Sort, datalis]; \[IndentingNewLine]data3\ = \ Map[{{First[#], Last[#]}, Median[#], Drop[Quartiles[#], {2, 2}]} &, data2]; \[IndentingNewLine]grphicsprim\ = \ If[Head[color] === List, Table[{Line[{{\((2\ i\ - \ 1)\)\ incrmnt, data3[\([\)\(i, 1, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt, data3[\([\)\(i, 1, 2\)\(]\)]}}], {First[ RotateLeft[color, i - 1]], Polygon[{{\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9 incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}}]}, Line[{{\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9 incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}}]}, {i, Length[data3]}], Table[{Line[{{\((2\ i\ - \ 1)\)\ incrmnt, data3[\([\)\(i, 1, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt, data3[\([\)\(i, 1, 2\)\(]\)]}}], {color, Polygon[{{\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9 incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}}]}, Line[{{\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9 incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 1\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ + \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .9\ incrmnt, data3[\([\)\(i, 3, 2\)\(]\)]}, {\((2\ i\ - \ 1)\)\ incrmnt\ - \ .75\ incrmnt, data3[\([\)\(i, 2\)\(]\)]}}]}, {i, Length[data3]}]]; \[IndentingNewLine]plots\ = \ Show[Graphics[grphicsprim], AspectRatio\ \[Rule] \ pltratio, Axes\ \[Rule] \ True, Ticks\ \[Rule] \ {None, Automatic}]\[IndentingNewLine]]\)], "Input"], Cell["\<\ The depth of the waist is determined by the .75 incrmnt in the \ function definition. Changing the .75 to a smaller number will make the \ waist deeper. The third argument here is used to change the height-width \ ratio of the plot. The default is 1/GoldenRatio, so if you do not give a \ value that will be the ratio of the display. It is also possible to build \ text into the function so that each of the box and whisker plots would have \ its own label.\ \>", "Text"] }, Open ]], Cell[CellGroupData[{ Cell["A plot without the option", "Subsection"], Cell[CellGroupData[{ Cell[BoxData[ \(BoxWhisker[testdata, Hue[ .2]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations 0.0238095 0.968523 0.0147151 0.0654004 [ [.01131 .14552 -6 -4.5 ] [.01131 .14552 0 4.5 ] [.01131 .27632 -6 -4.5 ] [.01131 .27632 0 4.5 ] [.01131 .40712 -6 -4.5 ] [.01131 .40712 0 4.5 ] [.01131 .53792 -6 -4.5 ] [.01131 .53792 0 4.5 ] [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .01472 m 1 .01472 L s .02381 .14552 m .03006 .14552 L s [(2)] .01131 .14552 1 0 Mshowa .02381 .27632 m .03006 .27632 L s [(4)] .01131 .27632 1 0 Mshowa .02381 .40712 m .03006 .40712 L s [(6)] .01131 .40712 1 0 Mshowa .02381 .53792 m .03006 .53792 L s [(8)] .01131 .53792 1 0 Mshowa .125 Mabswid .02381 .04742 m .02756 .04742 L s .02381 .08012 m .02756 .08012 L s .02381 .11282 m .02756 .11282 L s .02381 .17822 m .02756 .17822 L s .02381 .21092 m .02756 .21092 L s .02381 .24362 m .02756 .24362 L s .02381 .30902 m .02756 .30902 L s .02381 .34172 m .02756 .34172 L s .02381 .37442 m .02756 .37442 L s .02381 .43982 m .02756 .43982 L s .02381 .47252 m .02756 .47252 L s .02381 .50522 m .02756 .50522 L s .02381 .57062 m .02756 .57062 L s .02381 .60332 m .02756 .60332 L s .25 Mabswid .02381 0 m .02381 .61803 L s 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath .5 Mabswid .18523 .08012 m .18523 .47252 L s .8 1 0 r .3063 .27632 m .33051 .14552 L .03995 .14552 L .06416 .27632 L .03995 .34172 L .33051 .34172 L F 0 g .3063 .27632 m .33051 .14552 L .03995 .14552 L .06416 .27632 L .3063 .27632 L .33051 .34172 L .03995 .34172 L .06416 .27632 L s .50807 .14552 m .50807 .53792 L s .8 1 0 r .62914 .21092 m .65335 .19457 L .36279 .19457 L .38701 .21092 L .36279 .34172 L .65335 .34172 L F 0 g .62914 .21092 m .65335 .19457 L .36279 .19457 L .38701 .21092 L .62914 .21092 L .65335 .34172 L .36279 .34172 L .38701 .21092 L s .83091 .01472 m .83091 .60332 L s .8 1 0 r .95198 .30902 m .97619 .17822 L .68563 .17822 L .70985 .30902 L .68563 .57062 L .97619 .57062 L F 0 g .95198 .30902 m .97619 .17822 L .68563 .17822 L .70985 .30902 L .95198 .30902 L .97619 .57062 L .68563 .57062 L .70985 .30902 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0 h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3Rooooo`03o`000?oo oooooooo02oooooo0009ooooo`03o`000?oooooooooo0>;ooooo00?o0000ooooooooool0;oooool0 00Wooooo00?o0000ooooooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003o ooooooooo`3Rooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo0>;ooooo 00?o0000ooooooooool0;oooool000Wooooo0_l0003Sooooo`03o`000?oooooooooo02oooooo0009 ooooo`03o`000?oooooooooo0>;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000oooo ooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3Rooooo`03 o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo0>;ooooo00?o0000ooooooooool0 ;oooool000Wooooo00?o0000ooooooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool0 0ol0003oooooooooo`3Rooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo 0>;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0h_ooool00ol0003o ooooooooo`0_ooooo`002Oooool2o`0002cooooo00?o0000ooooooooool0]?ooool00ol0003ooooo ooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03o`000?oooooooooo0;Cooooo00?o 0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0:oooool00ol0003oooooooooo`2d ooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo02_ooooo00?o0000oooo ooooool0]?ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03 o`000?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0 :oooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oo oooooooo02_ooooo00?o0000ooooooooool0]?ooool00ol0003oooooooooo`0_ooooo`002Oooool0 0ol0003oooooooooo`0[ooooo`03o`000?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool0 00Wooooo00?o0000ooooooooool0:oooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo 02oooooo0009ooooo`;o0000;?ooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oo oooo0009ooooo`03o`000?oooooooooo02_ooooo00?o0000ooooooooool0]?ooool00ol0003ooooo ooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03o`000?oooooooooo0;Cooooo00?o 0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0:oooool00ol0003oooooooooo`2d ooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo02_ooooo00?o0000oooo ooooool0]?ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03 o`000?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0 :oooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oooooo0005o`0000Cooooo00?o 0000ooooooooool0:oooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oooooo0000 1Ooooooo0000oooooooooooo000000Cooooo00?o0000ooooooooool0:oooool00ol0003ooooooooo o`2dooooo`03o`000?oooooooooo02oooooo0002ooooo`03o`000?oooooooooo00Cooooo00?o0000 ooooooooool0:oooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oooooo0003oooo o`03o`000?oooooooooo00?ooooo0ol00002oooooe?o0000<_ooool00ol0003oooooooooo`1Hoooo o`03o`000?oooooooooo02oooooo00001Ol0003ooooooooooooooooo000000Cooooo00?o0000oooo ooooool00_ooool00ol0003oc?l0olco001?olco0003o`000?oooooooooo033ooooo00?o0000oooo ooooool0F?ooool00ol0003oooooooooo`0_ooooo`0000Go0000ooooooooooooooooo`000004oooo o`03o`000?oooooooooo00;ooooo00?o0000olco0?oolco0003o`000?oooooooooo00Kooooo0009ooooo`03o`000?oooooooooo00Go oooo00?o0000olco0?oolco0003o`000?oooooooooo00Kooooo0009ooooo`03o`000?oooooooooo00Gooooo 00?o0000olco0?oooooo`03o`000?ooooo o`03o`000?oolco0003o`000?oooooooooo00Kooooo0009ooooo`03o`000?oooooooooo08Oooooo00?o 0000ooooooooool0olco0003o`000?oooooooooo00Kooooo0009 ooooo`03o`000?oooooooooo08Oooooo00?o0000ooooooooool0 olco0003o`000?oooooooooo00Kooooo0009ooooo`03o`000?oooooooooo08Oooooo00?o0000oooo ooooool0olco0003o`000?oooooooooo00Kooooo00001?oooooo 0000o`000?l00005ooooo`03o`000?oooooooooo08Oooooo00?o0000ooooooooool0olco0003o`000?oooooooooo00Kooooo00001Ol0003ooooooooooooooooo0000 00Cooooo00?o0000ooooooooool0Qoooool00ol0003oooooooooo`0`ooooo`03o`000?oolco0003o`000?oooooooooo 00Kooooo00001?oooooo0000o`000?l00005ooooo`03o`000?oooooooooo0;[ooooo00?o0000olco 0?o;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0 h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3Rooooo`03o`000?oo oooooooo02oooooo0009ooooo`03o`000?oooooooooo0>;ooooo00?o0000ooooooooool0;oooool0 00Wooooo00?o0000ooooooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003o ooooooooo`3Rooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo0>;ooooo 00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0h_ooool00ol0003ooooooooo o`0_ooooo`002Oooool00ol0003oooooooooo`3Rooooo`03o`000?oooooooooo02oooooo0009oooo o`;o0000hoooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3ooooooaGo oooo0009ooooo`03o`000?oooooooooo0?oooooo5Oooool000Wooooo00?o0000ooooooooool0oooo oolEooooo`002Oooool00ol0003oooooooooo`3ooooooaGooooo0000\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {-0.034708, -0.259598, \ 0.00363286, 0.0537994}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell["\<\ And now with the option changing the aspect ratio of the plot and \ switching the color to GrayLevel.\ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(BoxWhisker[testdata, GrayLevel[ .8], 1/3]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .33333 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations 0.0238095 0.968523 0.00793651 0.0352734 [ [.01131 .07848 -6 -4.5 ] [.01131 .07848 0 4.5 ] [.01131 .14903 -6 -4.5 ] [.01131 .14903 0 4.5 ] [.01131 .21958 -6 -4.5 ] [.01131 .21958 0 4.5 ] [.01131 .29012 -6 -4.5 ] [.01131 .29012 0 4.5 ] [ 0 0 0 0 ] [ 1 .33333 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .00794 m 1 .00794 L s .02381 .07848 m .03006 .07848 L s [(2)] .01131 .07848 1 0 Mshowa .02381 .14903 m .03006 .14903 L s [(4)] .01131 .14903 1 0 Mshowa .02381 .21958 m .03006 .21958 L s [(6)] .01131 .21958 1 0 Mshowa .02381 .29012 m .03006 .29012 L s [(8)] .01131 .29012 1 0 Mshowa .125 Mabswid .02381 .02557 m .02756 .02557 L s .02381 .04321 m .02756 .04321 L s .02381 .06085 m .02756 .06085 L s .02381 .09612 m .02756 .09612 L s .02381 .11376 m .02756 .11376 L s .02381 .13139 m .02756 .13139 L s .02381 .16667 m .02756 .16667 L s .02381 .1843 m .02756 .1843 L s .02381 .20194 m .02756 .20194 L s .02381 .23721 m .02756 .23721 L s .02381 .25485 m .02756 .25485 L s .02381 .27249 m .02756 .27249 L s .02381 .30776 m .02756 .30776 L s .02381 .3254 m .02756 .3254 L s .25 Mabswid .02381 0 m .02381 .33333 L s 0 0 m 1 0 L 1 .33333 L 0 .33333 L closepath clip newpath .5 Mabswid .18523 .04321 m .18523 .25485 L s .8 g .3063 .14903 m .33051 .07848 L .03995 .07848 L .06416 .14903 L .03995 .1843 L .33051 .1843 L F 0 g .3063 .14903 m .33051 .07848 L .03995 .07848 L .06416 .14903 L .3063 .14903 L .33051 .1843 L .03995 .1843 L .06416 .14903 L s .50807 .07848 m .50807 .29012 L s .8 g .62914 .11376 m .65335 .10494 L .36279 .10494 L .38701 .11376 L .36279 .1843 L .65335 .1843 L F 0 g .62914 .11376 m .65335 .10494 L .36279 .10494 L .38701 .11376 L .62914 .11376 L .65335 .1843 L .36279 .1843 L .38701 .11376 L s .83091 .00794 m .83091 .3254 L s .8 g .95198 .16667 m .97619 .09612 L .68563 .09612 L .70985 .16667 L .68563 .30776 L .97619 .30776 L F 0 g .95198 .16667 m .97619 .09612 L .68563 .09612 L .70985 .16667 L .95198 .16667 L .97619 .30776 L .68563 .30776 L .70985 .16667 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 95.9375}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHg;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000 ooooooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3Roooo o`03o`000?oooooooooo02oooooo0009ooooo`;o0000hoooool00ol0003oooooooooo`0_ooooo`00 2Oooool00ol0003oooooooooo`3Rooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oo oooooooo0>;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0h_ooool0 0ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3Rooooo`03o`000?oooooooooo 02oooooo0009ooooo`;o0000;?ooool00ol0003oooooooooo`2dooooo`03o`000?oooooooooo02oo oooo0009ooooo`03o`000?oooooooooo02_ooooo00?o0000ooooooooool0]?ooool00ol0003ooooo ooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03o`000?oooooooooo0;Cooooo00?o 0000ooooooooool0;oooool000Wooooo00?o0000ooooooooool0:oooool00ol0003oooooooooo`2d ooooo`03o`000?oooooooooo02oooooo0009ooooo`03o`000?oooooooooo02_ooooo00?o0000oooo ooooool0]?ooool00ol0003oooooooooo`0_ooooo`002Oooool2o`0002cooooo00?o0000oooooooo ool0]?ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`0[ooooo`03o`00 0?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool000Go00001?ooool00ol0003ooooooooo o`0[ooooo`03o`000?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool00005ooooool0003o ooooooooool000001?ooool00ol0003oooooooooo`0[ooooo`03o`000?oooooooooo0;Cooooo00?o 0000ooooooooool0;oooool000;ooooo00?o0000ooooooooool01?ooool00ol0003oooooooooo`0[ ooooo`03o`000?oooooooooo0;Cooooo00?o0000ooooooooool0;oooool000?ooooo00?o0000oooo ooooool00oooool3o`0000;oooooDol0000booooo`03o`000?oooooooooo05Sooooo00?o0000oooo ooooool0;oooool00005o`000?ooooooooooooooool000001?ooool00ol0003oooooooooo`02oooo o`03o`000?oolcooooo`03o`000?oooooo`03o`000?o olcolc;ooooo00?o0000ooooooooool0;oooool000Wooooo00?o 0000ooooooooool0h_ooool00ol0003oooooooooo`0_ooooo`002Oooool00ol0003oooooooooo`3R ooooo`03o`000?oooooooooo02oooooo0009ooooo`;o0000hoooool00ol0003oooooooooo`0_oooo o`002Oooool00ol0003oooooooooo`3ooooooaGooooo0009ooooo`03o`000?oooooooooo0?oooooo 5Oooool00001\ \>"], ImageRangeCache->{{{0, 287}, {94.9375, 0}} -> {-0.034708, -0.235037, \ 0.00363286, 0.0997495}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell["Different colors for the different data sets", "Subsection"], Cell["\<\ If we give a list of colors they will be used sequentially for each \ of the boxes.\ \>", "Text"], Cell[BoxData[ \(\(data2\ = \ Table[Random[Real, {0, 10} + Random[Integer, {\(-6\), 12}]], {i, 5}, {j, Random[Integer, {10, 20}]}];\)\)], "Input"], Cell[CellGroupData[{ Cell[BoxData[ \(BoxWhisker[data2, Hue[ .6]]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations 0.0238095 0.962001 0.120656 0.0224302 [ [.01131 .0085 -12 -4.5 ] [.01131 .0085 0 4.5 ] [.01131 .23281 -6 -4.5 ] [.01131 .23281 0 4.5 ] [.01131 .34496 -12 -4.5 ] [.01131 .34496 0 4.5 ] [.01131 .45711 -12 -4.5 ] [.01131 .45711 0 4.5 ] [.01131 .56926 -12 -4.5 ] [.01131 .56926 0 4.5 ] [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .12066 m 1 .12066 L s .02381 .0085 m .03006 .0085 L s [(-5)] .01131 .0085 1 0 Mshowa .02381 .23281 m .03006 .23281 L s [(5)] .01131 .23281 1 0 Mshowa .02381 .34496 m .03006 .34496 L s [(10)] .01131 .34496 1 0 Mshowa .02381 .45711 m .03006 .45711 L s [(15)] .01131 .45711 1 0 Mshowa .02381 .56926 m .03006 .56926 L s [(20)] .01131 .56926 1 0 Mshowa .125 Mabswid .02381 .03093 m .02756 .03093 L s .02381 .05337 m .02756 .05337 L s .02381 .0758 m .02756 .0758 L s .02381 .09823 m .02756 .09823 L s .02381 .14309 m .02756 .14309 L s .02381 .16552 m .02756 .16552 L s .02381 .18795 m .02756 .18795 L s .02381 .21038 m .02756 .21038 L s .02381 .25524 m .02756 .25524 L s .02381 .27767 m .02756 .27767 L s .02381 .3001 m .02756 .3001 L s .02381 .32253 m .02756 .32253 L s .02381 .36739 m .02756 .36739 L s .02381 .38982 m .02756 .38982 L s .02381 .41225 m .02756 .41225 L s .02381 .43468 m .02756 .43468 L s .02381 .47954 m .02756 .47954 L s .02381 .50197 m .02756 .50197 L s .02381 .5244 m .02756 .5244 L s .02381 .54683 m .02756 .54683 L s .02381 .59169 m .02756 .59169 L s .02381 .61412 m .02756 .61412 L s .25 Mabswid .02381 0 m .02381 .61803 L s 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath .5 Mabswid .12001 .03774 m .12001 .45376 L s 0 .4 1 r .19216 .25771 m .20659 .19067 L .03343 .19067 L .04786 .25771 L .03343 .39045 L .20659 .39045 L F 0 g .19216 .25771 m .20659 .19067 L .03343 .19067 L .04786 .25771 L .19216 .25771 L .20659 .39045 L .03343 .39045 L .04786 .25771 L s .31241 .01472 m .31241 .57349 L s 0 .4 1 r .38456 .29826 m .39899 .16129 L .22583 .16129 L .24026 .29826 L .22583 .36135 L .39899 .36135 L F 0 g .38456 .29826 m .39899 .16129 L .22583 .16129 L .24026 .29826 L .38456 .29826 L .39899 .36135 L .22583 .36135 L .24026 .29826 L s .50481 .05323 m .50481 .514 L s 0 .4 1 r .57696 .22776 m .59139 .16409 L .41823 .16409 L .43266 .22776 L .41823 .36244 L .59139 .36244 L F 0 g .57696 .22776 m .59139 .16409 L .41823 .16409 L .43266 .22776 L .57696 .22776 L .59139 .36244 L .41823 .36244 L .43266 .22776 L s .69721 .04265 m .69721 .54849 L s 0 .4 1 r .76936 .36005 m .78379 .26061 L .61063 .26061 L .62506 .36005 L .61063 .43681 L .78379 .43681 L F 0 g .76936 .36005 m .78379 .26061 L .61063 .26061 L .62506 .36005 L .76936 .36005 L .78379 .43681 L .61063 .43681 L .62506 .36005 L s .88961 .06373 m .88961 .60332 L s 0 .4 1 r .96176 .29923 m .97619 .16492 L .80303 .16492 L .81746 .29923 L .80303 .36553 L .97619 .36553 L F 0 g .96176 .29923 m .97619 .16492 L .80303 .16492 L .81746 .29923 L .96176 .29923 L .97619 .36553 L .80303 .36553 L .81746 .29923 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgkooooo00?o0000ooooooooool07Oooool00004ooooool0003o0000o`0000Co oooo0_l00005ooooo`03o`000?oooooooooo0>kooooo00?o0000ooooooooool07Oooool000oooooo 00?o0000ooooooooool0k_ooool00ol0003oooooooooo`0Mooooo`003oooool00ol0003ooooooooo o`3^ooooo`03o`000?oooooooooo01gooooo000?ooooo`;o0000koooool00ol0003oooooooooo`0M ooooo`003oooool00ol0003oooooooooo`3^ooooo`03o`000?oooooooooo01gooooo000?ooooo`03 o`000?oooooooooo0>kooooo00?o0000ooooooooool07Oooool000oooooo00?o0000ooooooooool0 k_ooool00ol0003oooooooooo`0Mooooo`003oooool00ol0003oooooooooo`3oooooo`oooooo000? ooooo`03o`000?oooooooooo0?oooooo3oooool000oooooo0_l0003ooooooa3ooooo000?ooooo`03 o`000?oooooooooo0?oooooo3oooool00?oooooo8Oooool00001\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {-0.0578458, -5.95401, \ 0.00373729, 0.160287}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]], Cell[CellGroupData[{ Cell[BoxData[ \(BoxWhisker[ data2, {Hue[ .1], Hue[ .3], Hue[ .5], Hue[ .7], Hue[ .9]}]\)], "Input"], Cell[GraphicsData["PostScript", "\<\ %! %%Creator: Mathematica %%AspectRatio: .61803 MathPictureStart /Mabs { Mgmatrix idtransform Mtmatrix dtransform } bind def /Mabsadd { Mabs 3 -1 roll add 3 1 roll add exch } bind def %% Graphics %%IncludeResource: font Courier %%IncludeFont: Courier /Courier findfont 10 scalefont setfont % Scaling calculations 0.0238095 0.962001 0.120656 0.0224302 [ [.01131 .0085 -12 -4.5 ] [.01131 .0085 0 4.5 ] [.01131 .23281 -6 -4.5 ] [.01131 .23281 0 4.5 ] [.01131 .34496 -12 -4.5 ] [.01131 .34496 0 4.5 ] [.01131 .45711 -12 -4.5 ] [.01131 .45711 0 4.5 ] [.01131 .56926 -12 -4.5 ] [.01131 .56926 0 4.5 ] [ 0 0 0 0 ] [ 1 .61803 0 0 ] ] MathScale % Start of Graphics 1 setlinecap 1 setlinejoin newpath 0 g .25 Mabswid [ ] 0 setdash 0 .12066 m 1 .12066 L s .02381 .0085 m .03006 .0085 L s [(-5)] .01131 .0085 1 0 Mshowa .02381 .23281 m .03006 .23281 L s [(5)] .01131 .23281 1 0 Mshowa .02381 .34496 m .03006 .34496 L s [(10)] .01131 .34496 1 0 Mshowa .02381 .45711 m .03006 .45711 L s [(15)] .01131 .45711 1 0 Mshowa .02381 .56926 m .03006 .56926 L s [(20)] .01131 .56926 1 0 Mshowa .125 Mabswid .02381 .03093 m .02756 .03093 L s .02381 .05337 m .02756 .05337 L s .02381 .0758 m .02756 .0758 L s .02381 .09823 m .02756 .09823 L s .02381 .14309 m .02756 .14309 L s .02381 .16552 m .02756 .16552 L s .02381 .18795 m .02756 .18795 L s .02381 .21038 m .02756 .21038 L s .02381 .25524 m .02756 .25524 L s .02381 .27767 m .02756 .27767 L s .02381 .3001 m .02756 .3001 L s .02381 .32253 m .02756 .32253 L s .02381 .36739 m .02756 .36739 L s .02381 .38982 m .02756 .38982 L s .02381 .41225 m .02756 .41225 L s .02381 .43468 m .02756 .43468 L s .02381 .47954 m .02756 .47954 L s .02381 .50197 m .02756 .50197 L s .02381 .5244 m .02756 .5244 L s .02381 .54683 m .02756 .54683 L s .02381 .59169 m .02756 .59169 L s .02381 .61412 m .02756 .61412 L s .25 Mabswid .02381 0 m .02381 .61803 L s 0 0 m 1 0 L 1 .61803 L 0 .61803 L closepath clip newpath .5 Mabswid .12001 .03774 m .12001 .45376 L s 1 .6 0 r .19216 .25771 m .20659 .19067 L .03343 .19067 L .04786 .25771 L .03343 .39045 L .20659 .39045 L F 0 g .19216 .25771 m .20659 .19067 L .03343 .19067 L .04786 .25771 L .19216 .25771 L .20659 .39045 L .03343 .39045 L .04786 .25771 L s .31241 .01472 m .31241 .57349 L s .2 1 0 r .38456 .29826 m .39899 .16129 L .22583 .16129 L .24026 .29826 L .22583 .36135 L .39899 .36135 L F 0 g .38456 .29826 m .39899 .16129 L .22583 .16129 L .24026 .29826 L .38456 .29826 L .39899 .36135 L .22583 .36135 L .24026 .29826 L s .50481 .05323 m .50481 .514 L s 0 1 1 r .57696 .22776 m .59139 .16409 L .41823 .16409 L .43266 .22776 L .41823 .36244 L .59139 .36244 L F 0 g .57696 .22776 m .59139 .16409 L .41823 .16409 L .43266 .22776 L .57696 .22776 L .59139 .36244 L .41823 .36244 L .43266 .22776 L s .69721 .04265 m .69721 .54849 L s .2 0 1 r .76936 .36005 m .78379 .26061 L .61063 .26061 L .62506 .36005 L .61063 .43681 L .78379 .43681 L F 0 g .76936 .36005 m .78379 .26061 L .61063 .26061 L .62506 .36005 L .76936 .36005 L .78379 .43681 L .61063 .43681 L .62506 .36005 L s .88961 .06373 m .88961 .60332 L s 1 0 .6 r .96176 .29923 m .97619 .16492 L .80303 .16492 L .81746 .29923 L .80303 .36553 L .97619 .36553 L F 0 g .96176 .29923 m .97619 .16492 L .80303 .16492 L .81746 .29923 L .96176 .29923 L .97619 .36553 L .80303 .36553 L .81746 .29923 L s % End of Graphics MathPictureEnd \ \>"], "Graphics", ImageSize->{288, 177.938}, ImageMargins->{{43, 0}, {0, 0}}, ImageRegion->{{0, 1}, {0, 1}}, ImageCache->GraphicsData["Bitmap", "\<\ CF5dJ6E]HGAYHf4PAg9QL6QYHgkooooo00?o0000ooooooooool07Oooool00004ooooool0003o0000o`0000Co oooo0_l00005ooooo`03o`000?oooooooooo0>kooooo00?o0000ooooooooool07Oooool000oooooo 00?o0000ooooooooool0k_ooool00ol0003oooooooooo`0Mooooo`003oooool00ol0003ooooooooo o`3^ooooo`03o`000?oooooooooo01gooooo000?ooooo`;o0000koooool00ol0003oooooooooo`0M ooooo`003oooool00ol0003oooooooooo`3^ooooo`03o`000?oooooooooo01gooooo000?ooooo`03 o`000?oooooooooo0>kooooo00?o0000ooooooooool07Oooool000oooooo00?o0000ooooooooool0 k_ooool00ol0003oooooooooo`0Mooooo`003oooool00ol0003oooooooooo`3oooooo`oooooo000? ooooo`03o`000?oooooooooo0?oooooo3oooool000oooooo0_l0003ooooooa3ooooo000?ooooo`03 o`000?oooooooooo0?oooooo3oooool00?oooooo8Oooool00001\ \>"], ImageRangeCache->{{{0, 287}, {176.938, 0}} -> {-0.0578458, -5.95401, \ 0.00373729, 0.160287}}], Cell[BoxData[ TagBox[\(\[SkeletonIndicator] Graphics \[SkeletonIndicator]\), False, Editable->False]], "Output"] }, Open ]] }, Open ]] }, Open ]] }, FrontEndVersion->"4.1 for Macintosh", ScreenRectangle->{{0, 1280}, {0, 1002}}, WindowSize->{785, 676}, WindowMargins->{{37, Automatic}, {Automatic, 10}} ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1727, 52, 46, 0, 61, "Subtitle"], Cell[CellGroupData[{ Cell[1798, 56, 49, 0, 46, "Subsection"], Cell[1850, 58, 265, 5, 46, "Text"], Cell[2118, 65, 69, 1, 27, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[2224, 71, 50, 0, 46, "Subsection"], Cell[2277, 73, 131, 2, 27, "Input"] }, Open ]], Cell[CellGroupData[{ Cell[2445, 80, 34, 0, 46, "Subsection"], Cell[2482, 82, 272, 5, 46, "Text"], Cell[2757, 89, 26, 0, 27, "Input"], Cell[2786, 91, 5661, 102, 683, "Input"], Cell[8450, 195, 485, 8, 62, "Text"] }, Open ]], Cell[CellGroupData[{ Cell[8972, 208, 47, 0, 46, "Subsection"], Cell[CellGroupData[{ Cell[9044, 212, 63, 1, 27, "Input"], Cell[9110, 215, 25530, 466, 186, 2468, 177, "GraphicsData", "PostScript", \ "Graphics"], Cell[34643, 683, 130, 3, 26, "Output"] }, Open ]], Cell[34788, 689, 125, 3, 30, "Text"], Cell[CellGroupData[{ Cell[34938, 696, 74, 1, 27, "Input"], Cell[35015, 699, 15094, 338, 104, 2444, 177, "GraphicsData", "PostScript", \ "Graphics"], Cell[50112, 1039, 130, 3, 26, "Output"] }, Open ]] }, Open ]], Cell[CellGroupData[{ Cell[50291, 1048, 66, 0, 46, "Subsection"], Cell[50360, 1050, 107, 3, 30, "Text"], Cell[50470, 1055, 172, 3, 43, "Input"], Cell[CellGroupData[{ Cell[50667, 1062, 60, 1, 27, "Input"], Cell[50730, 1065, 36339, 660, 186, 3400, 249, "GraphicsData", "PostScript", \ "Graphics"], Cell[87072, 1727, 130, 3, 26, "Output"] }, Open ]], Cell[CellGroupData[{ Cell[87239, 1735, 109, 2, 27, "Input"], Cell[87351, 1739, 36338, 660, 186, 3399, 249, "GraphicsData", "PostScript", \ "Graphics"], Cell[123692, 2401, 130, 3, 26, "Output"] }, Open ]] }, Open ]] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)