data() { cat <<EOF  >/tmp/gploty.dat
0 55 45
1 82 18
2 81 19
3 79 21
4 79 21
5 79 21
6 77 23
7 77 23
8 77 23
9 77 23
10 77 23
11 30 70
12 37 63
13 46 54
EOF
}

data
cat /tmp/gploty.dat

gnuplot<<EOF
set terminal postscript eps "Helvetica" 12
set output "/tmp/gploty.eps
set yrange [25:85]
set xrange [-0.25:13.25]
set xtics (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14)
set size 0.45,0.7
set title "%stay"
set arrow 1 from 0,55 to 13.25,55 nohead lt 0
set xlabel "Treatment #"
plot "/tmp/gploty.dat"   using 1:2 notitle  with histeps
EOF

epstopdf /tmp/gploty.eps
