diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex | 89 |
1 files changed, 64 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex index db6950f272c..bfebf8b1668 100644 --- a/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex +++ b/Master/texmf-dist/doc/generic/pstricks-add/pstricks-add-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pstricks-add-doc.tex 39 2008-08-27 21:17:28Z herbert $ +%% $Id: pstricks-add-doc.tex 49 2008-10-13 10:59:27Z herbert $ \documentclass[10pt]{article} \listfiles \usepackage{filecontents} @@ -899,30 +899,10 @@ 775 155126 776 155806 777 156377 -778 156692 -779 156734 -780 156883 -781 157412 -782 157929 -783 158547 -784 158764 -785 158973 -786 159385 -787 159416 -788 159637 -789 159670 -790 160103 -791 160549 -792 160679 -793 161283 -794 161951 -795 162320 -796 162776 -797 163374 -798 164039 -799 164090 -800 164460 -801 164947 +778 156692 779 156734 780 156883 781 157412 782 157929 783 158547 +784 158764 785 158973 786 159385 787 159416 788 159637 789 159670 +790 160103 791 160549 792 160679 793 161283 794 161951 795 162320 +796 162776 797 163374 798 164039 799 164090 800 164460 801 164947 802 165162 803 165373 804 165703 805 165906 806 166207 807 166815 808 167412 809 168041 810 168758 811 168994 812 169548 813 170116 814 170134 815 170275 816 170725 817 171110 818 171652 819 172034 @@ -8026,6 +8006,65 @@ est remarquable. %-------------------------------------------------------------------------------------- +\section{\CMD{psBoxplot}} +%-------------------------------------------------------------------------------------- + +A box-and-whisker plot (often called simply a box plot) is a histogram-like method of +displaying data, invented by John.\,Tukey. The box-and-whisker plot is a box with +ends at the quartiles $Q_1$ and $Q_3$ and has a statistical median M as a horizontal line in +the box. The "`whiskers"* are lines to the farthest points that are not outliers (i.e., +that are within 3/2 times the interquartile range of $Q_1$ and $Q_3$). Then, for every point +more than 3/2 times the interquartile range from the end of a box, is a dot. + +The only special optional arguments, beside all other which are valid for drawing lines +and filling areas, are \verb+IQLfactor+, \verb+barwidth+, and \verb+arrowlength+, where the latter is a factor +which is multiplied with the barwidth for the line ends. +The \verb+IQLfactor+, preset to 1.5, defines the area for the outliers. + +\begin{LTXexample}[pos=t,preset=\centering] +\begin{pspicture}(-1,-1)(12,14) +\psset{yunit=0.1,fillstyle=solid} +\savedata{\data}[100 90 120 115 120 110 100 110 100 90 100 100 120 120 120] +\rput(1,0){\psBoxplot[fillcolor=red!30]{\data}} +\rput(1,105){2001} +\savedata{\data}[90 120 115 116 115 110 90 130 120 120 120 85 100 130 130] +\rput(3,0){\psBoxplot[arrowlength=0.5,fillcolor=blue!30]{\data}} +\rput(3,107){2008} +\savedata{\data}[35 70 90 60 100 60 60 80 80 60 50 55 90 70 70] +\rput(5,0){\psBoxplot[barwidth=40pt,arrowlength=1.2,fillcolor=red!30]{\data}} +\rput(5,65){2001} +\savedata{\data}[60 65 60 75 75 60 50 90 95 60 65 45 45 60 90] +\rput(7,0){\psBoxplot[barwidth=40pt,fillcolor=blue!30]{\data}} +\rput(7,65){2008} +\savedata{\data}[20 20 25 20 15 20 20 25 30 20 20 20 30 30 30] +\rput(9,0){\psBoxplot[fillcolor=red!30]{\data}} +\rput(9,22){2001} +\savedata{\data}[20 30 20 35 35 20 20 60 50 20 35 15 30 20 40] +\rput(11,0){\psBoxplot[fillcolor=blue!30,linestyle=dashed]{\data}} +\rput(11,25){2008} +\psaxes[dy=1cm,Dy=10](0,0)(12,130) +\end{pspicture} +\end{LTXexample} + +The next example uses an external file for the data, hich must first be read by the +macro \verb+\readdata+. + +\begin{filecontents}{boxplot.data} +2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 +\end{filecontents} + +\begin{LTXexample}[width=5cm] +\begin{pspicture}(-1,-1)(4,10) +\psset{yunit=0.25,fillstyle=solid} +\readdata{\data}{boxplot.data} +\rput(1,0){\psBoxplot[fillcolor=blue!30]{\data}} +\psaxes[dy=1cm,Dy=4](0,0)(4,35) +\end{pspicture} +\end{LTXexample} + + + +%-------------------------------------------------------------------------------------- \section{\CMD{psMatrixPlot}} %-------------------------------------------------------------------------------------- \begin{filecontents}{matrix.dat} |