Statistics

Stat.binmean

using Gadfly, RDatasets
set_default_plot_size(21cm, 8cm)
p1 = plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
          Geom.point)
p2 = plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth",
          Stat.binmean, Geom.point)
hstack(p1,p2)
SepalLength 4 5 6 7 8 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 5.02 5.04 5.06 5.08 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24 5.26 5.28 5.30 5.32 5.34 5.36 5.38 5.40 5.42 5.44 5.46 5.48 5.50 5.52 5.54 5.56 5.58 5.60 5.62 5.64 5.66 5.68 5.70 5.72 5.74 5.76 5.78 5.80 5.82 5.84 5.86 5.88 5.90 5.92 5.94 5.96 5.98 6.00 6.02 6.04 6.06 6.08 6.10 6.12 6.14 6.16 6.18 6.20 6.22 6.24 6.26 6.28 6.30 6.32 6.34 6.36 6.38 6.40 6.42 6.44 6.46 6.48 6.50 6.52 6.54 6.56 6.58 6.60 6.62 6.64 6.66 6.68 6.70 6.72 6.74 6.76 6.78 6.80 6.82 6.84 6.86 6.88 6.90 6.92 6.94 6.96 6.98 7.00 7.02 7.04 7.06 7.08 7.10 7.12 7.14 7.16 7.18 7.20 7.22 7.24 7.26 7.28 7.30 7.32 7.34 7.36 7.38 7.40 7.42 7.44 7.46 7.48 7.50 7.52 7.54 7.56 7.58 7.60 7.62 7.64 7.66 7.68 7.70 7.72 7.74 7.76 7.78 7.80 7.82 7.84 7.86 7.88 7.90 7.92 7.94 7.96 7.98 8.00 4 6 8 7.6253.0875 7.1400000000000013.2 6.8571428571428563.0714285714285716 6.68000000000000153.0300000000000002 6.5,3.0 6.39999999999999952.9571428571428577 6.2999999999999992.8555555555555556 6.22.8249999999999997 6.052.7916666666666665 5.9000000000000013.0666666666666664 5.7999999999999992.8857142857142857 5.7000000000000013.1 5.60000000000000052.816666666666667 5.4428571428571433.207142857142857 5.2,3.425 5.10000000000000053.477777777777778 4.96253.05625 4.7714285714285713.185714285714286 4.4888888888888893.0777777777777775 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 2.75 3.00 3.25 3.50 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 2.750 2.755 2.760 2.765 2.770 2.775 2.780 2.785 2.790 2.795 2.800 2.805 2.810 2.815 2.820 2.825 2.830 2.835 2.840 2.845 2.850 2.855 2.860 2.865 2.870 2.875 2.880 2.885 2.890 2.895 2.900 2.905 2.910 2.915 2.920 2.925 2.930 2.935 2.940 2.945 2.950 2.955 2.960 2.965 2.970 2.975 2.980 2.985 2.990 2.995 3.000 3.005 3.010 3.015 3.020 3.025 3.030 3.035 3.040 3.045 3.050 3.055 3.060 3.065 3.070 3.075 3.080 3.085 3.090 3.095 3.100 3.105 3.110 3.115 3.120 3.125 3.130 3.135 3.140 3.145 3.150 3.155 3.160 3.165 3.170 3.175 3.180 3.185 3.190 3.195 3.200 3.205 3.210 3.215 3.220 3.225 3.230 3.235 3.240 3.245 3.250 3.255 3.260 3.265 3.270 3.275 3.280 3.285 3.290 3.295 3.300 3.305 3.310 3.315 3.320 3.325 3.330 3.335 3.340 3.345 3.350 3.355 3.360 3.365 3.370 3.375 3.380 3.385 3.390 3.395 3.400 3.405 3.410 3.415 3.420 3.425 3.430 3.435 3.440 3.445 3.450 3.455 3.460 3.465 3.470 3.475 3.480 3.485 3.490 3.495 3.500 2.5 3.0 3.5 SepalWidth SepalLength 4 5 6 7 8 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 5.02 5.04 5.06 5.08 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24 5.26 5.28 5.30 5.32 5.34 5.36 5.38 5.40 5.42 5.44 5.46 5.48 5.50 5.52 5.54 5.56 5.58 5.60 5.62 5.64 5.66 5.68 5.70 5.72 5.74 5.76 5.78 5.80 5.82 5.84 5.86 5.88 5.90 5.92 5.94 5.96 5.98 6.00 6.02 6.04 6.06 6.08 6.10 6.12 6.14 6.16 6.18 6.20 6.22 6.24 6.26 6.28 6.30 6.32 6.34 6.36 6.38 6.40 6.42 6.44 6.46 6.48 6.50 6.52 6.54 6.56 6.58 6.60 6.62 6.64 6.66 6.68 6.70 6.72 6.74 6.76 6.78 6.80 6.82 6.84 6.86 6.88 6.90 6.92 6.94 6.96 6.98 7.00 7.02 7.04 7.06 7.08 7.10 7.12 7.14 7.16 7.18 7.20 7.22 7.24 7.26 7.28 7.30 7.32 7.34 7.36 7.38 7.40 7.42 7.44 7.46 7.48 7.50 7.52 7.54 7.56 7.58 7.60 7.62 7.64 7.66 7.68 7.70 7.72 7.74 7.76 7.78 7.80 7.82 7.84 7.86 7.88 7.90 7.92 7.94 7.96 7.98 8.00 4 6 8 5.9,3.0 6.2,3.4 6.5,3.0 6.3,2.5 6.7,3.0 6.7,3.3 6.8,3.2 5.8,2.7 6.9,3.1 6.7,3.1 6.9,3.1 6.0,3.0 6.4,3.1 6.3,3.4 7.7,3.0 6.1,2.6 6.3,2.8 6.4,2.8 7.9,3.8 7.4,2.8 7.2,3.0 6.4,2.8 6.1,3.0 6.2,2.8 7.2,3.2 6.7,3.3 6.3,2.7 7.7,2.8 5.6,2.8 6.9,3.2 6.0,2.2 7.7,2.6 7.7,3.8 6.5,3.0 6.4,3.2 5.8,2.8 5.7,2.5 6.8,3.0 6.4,2.7 6.5,3.2 7.2,3.6 6.7,2.5 7.3,2.9 4.9,2.5 7.6,3.0 6.5,3.0 6.3,2.9 7.1,3.0 5.8,2.7 6.3,3.3 5.7,2.8 5.1,2.5 6.2,2.9 5.7,2.9 5.7,3.0 5.6,2.7 5.0,2.3 5.8,2.6 6.1,3.0 5.5,2.6 5.5,2.5 5.6,3.0 6.3,2.3 6.7,3.1 6.0,3.4 5.4,3.0 6.0,2.7 5.8,2.7 5.5,2.4 5.5,2.4 5.7,2.6 6.0,2.9 6.7,3.0 6.8,2.8 6.6,3.0 6.4,2.9 6.1,2.8 6.3,2.5 6.1,2.8 5.9,3.2 5.6,2.5 6.2,2.2 5.8,2.7 5.6,3.0 6.7,3.1 5.6,2.9 6.1,2.9 6.0,2.2 5.9,3.0 5.0,2.0 5.2,2.7 6.6,2.9 4.9,2.4 6.3,3.3 5.7,2.8 6.5,2.8 5.5,2.3 6.9,3.1 6.4,3.2 7.0,3.2 5.0,3.3 5.3,3.7 4.6,3.2 5.1,3.8 4.8,3.0 5.1,3.8 5.0,3.5 4.4,3.2 4.5,2.3 5.0,3.5 5.1,3.4 4.4,3.0 4.9,3.6 5.5,3.5 5.0,3.2 4.9,3.1 5.5,4.2 5.2,4.1 5.4,3.4 4.8,3.1 4.7,3.2 5.2,3.4 5.2,3.5 5.0,3.4 5.0,3.0 4.8,3.4 5.1,3.3 4.6,3.6 5.1,3.7 5.4,3.4 5.1,3.8 5.7,3.8 5.1,3.5 5.4,3.9 5.7,4.4 5.8,4.0 4.3,3.0 4.8,3.0 4.8,3.4 5.4,3.7 4.9,3.1 4.4,2.9 5.0,3.4 4.6,3.4 5.4,3.9 5.0,3.6 4.6,3.1 4.7,3.2 4.9,3.0 5.1,3.5 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 2.0 2.5 3.0 3.5 4.0 4.5 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 1.99 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 2.31 2.32 2.33 2.34 2.35 2.36 2.37 2.38 2.39 2.40 2.41 2.42 2.43 2.44 2.45 2.46 2.47 2.48 2.49 2.50 2.51 2.52 2.53 2.54 2.55 2.56 2.57 2.58 2.59 2.60 2.61 2.62 2.63 2.64 2.65 2.66 2.67 2.68 2.69 2.70 2.71 2.72 2.73 2.74 2.75 2.76 2.77 2.78 2.79 2.80 2.81 2.82 2.83 2.84 2.85 2.86 2.87 2.88 2.89 2.90 2.91 2.92 2.93 2.94 2.95 2.96 2.97 2.98 2.99 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 3.26 3.27 3.28 3.29 3.30 3.31 3.32 3.33 3.34 3.35 3.36 3.37 3.38 3.39 3.40 3.41 3.42 3.43 3.44 3.45 3.46 3.47 3.48 3.49 3.50 3.51 3.52 3.53 3.54 3.55 3.56 3.57 3.58 3.59 3.60 3.61 3.62 3.63 3.64 3.65 3.66 3.67 3.68 3.69 3.70 3.71 3.72 3.73 3.74 3.75 3.76 3.77 3.78 3.79 3.80 3.81 3.82 3.83 3.84 3.85 3.86 3.87 3.88 3.89 3.90 3.91 3.92 3.93 3.94 3.95 3.96 3.97 3.98 3.99 4.00 4.01 4.02 4.03 4.04 4.05 4.06 4.07 4.08 4.09 4.10 4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 4.19 4.20 4.21 4.22 4.23 4.24 4.25 4.26 4.27 4.28 4.29 4.30 4.31 4.32 4.33 4.34 4.35 4.36 4.37 4.38 4.39 4.40 4.41 4.42 4.43 4.44 4.45 4.46 4.47 4.48 4.49 4.50 2 3 4 5 SepalWidth

Stat.density

using DataFrames, Gadfly, Distributions
set_default_plot_size(21cm, 8cm)
x = -4:0.1:4
Da = [DataFrame(x=x, ymax=pdf.(Normal(μ),x), u="μ=$μ") for μ in [-1,1]]
Db = [DataFrame(x=randn(200).+μ, u="μ=$μ") for μ in [-1,1]]

p1 = plot(vcat(Da...), x=:x, y=:ymax, ymin=[0.0], ymax=:ymax, color=:u,
    Geom.line, Geom.ribbon, Guide.ylabel("Density"), Theme(alphas=[0.6]),
    Guide.colorkey(title="", pos=[2.5,0.6]), Guide.title("Parametric PDF")
)
p2 = plot(vcat(Db...), x=:x, color=:u, Theme(alphas=[0.6]),
    Stat.density(bandwidth=0.5), Geom.polygon(fill=true, preserve_order=true),
    Coord.cartesian(xmin=-4, xmax=4, ymin=0, ymax=0.4),
    Guide.colorkey(title="", pos=[2.5,0.6]), Guide.title("Kernel PDF")
)
hstack(p1,p2)
x -4 -2 0 2 4 -4.0 -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 -4.00 -3.95 -3.90 -3.85 -3.80 -3.75 -3.70 -3.65 -3.60 -3.55 -3.50 -3.45 -3.40 -3.35 -3.30 -3.25 -3.20 -3.15 -3.10 -3.05 -3.00 -2.95 -2.90 -2.85 -2.80 -2.75 -2.70 -2.65 -2.60 -2.55 -2.50 -2.45 -2.40 -2.35 -2.30 -2.25 -2.20 -2.15 -2.10 -2.05 -2.00 -1.95 -1.90 -1.85 -1.80 -1.75 -1.70 -1.65 -1.60 -1.55 -1.50 -1.45 -1.40 -1.35 -1.30 -1.25 -1.20 -1.15 -1.10 -1.05 -1.00 -0.95 -0.90 -0.85 -0.80 -0.75 -0.70 -0.65 -0.60 -0.55 -0.50 -0.45 -0.40 -0.35 -0.30 -0.25 -0.20 -0.15 -0.10 -0.05 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.55 2.60 2.65 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 3.55 3.60 3.65 3.70 3.75 3.80 3.85 3.90 3.95 4.00 -5 0 5 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? μ=-1 μ=1 0.0 0.1 0.2 0.3 0.4 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.000 0.002 0.004 0.006 0.008 0.010 0.012 0.014 0.016 0.018 0.020 0.022 0.024 0.026 0.028 0.030 0.032 0.034 0.036 0.038 0.040 0.042 0.044 0.046 0.048 0.050 0.052 0.054 0.056 0.058 0.060 0.062 0.064 0.066 0.068 0.070 0.072 0.074 0.076 0.078 0.080 0.082 0.084 0.086 0.088 0.090 0.092 0.094 0.096 0.098 0.100 0.102 0.104 0.106 0.108 0.110 0.112 0.114 0.116 0.118 0.120 0.122 0.124 0.126 0.128 0.130 0.132 0.134 0.136 0.138 0.140 0.142 0.144 0.146 0.148 0.150 0.152 0.154 0.156 0.158 0.160 0.162 0.164 0.166 0.168 0.170 0.172 0.174 0.176 0.178 0.180 0.182 0.184 0.186 0.188 0.190 0.192 0.194 0.196 0.198 0.200 0.202 0.204 0.206 0.208 0.210 0.212 0.214 0.216 0.218 0.220 0.222 0.224 0.226 0.228 0.230 0.232 0.234 0.236 0.238 0.240 0.242 0.244 0.246 0.248 0.250 0.252 0.254 0.256 0.258 0.260 0.262 0.264 0.266 0.268 0.270 0.272 0.274 0.276 0.278 0.280 0.282 0.284 0.286 0.288 0.290 0.292 0.294 0.296 0.298 0.300 0.302 0.304 0.306 0.308 0.310 0.312 0.314 0.316 0.318 0.320 0.322 0.324 0.326 0.328 0.330 0.332 0.334 0.336 0.338 0.340 0.342 0.344 0.346 0.348 0.350 0.352 0.354 0.356 0.358 0.360 0.362 0.364 0.366 0.368 0.370 0.372 0.374 0.376 0.378 0.380 0.382 0.384 0.386 0.388 0.390 0.392 0.394 0.396 0.398 0.400 0.0 0.5 Kernel PDF x -4 -2 0 2 4 -4.0 -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 -4.00 -3.95 -3.90 -3.85 -3.80 -3.75 -3.70 -3.65 -3.60 -3.55 -3.50 -3.45 -3.40 -3.35 -3.30 -3.25 -3.20 -3.15 -3.10 -3.05 -3.00 -2.95 -2.90 -2.85 -2.80 -2.75 -2.70 -2.65 -2.60 -2.55 -2.50 -2.45 -2.40 -2.35 -2.30 -2.25 -2.20 -2.15 -2.10 -2.05 -2.00 -1.95 -1.90 -1.85 -1.80 -1.75 -1.70 -1.65 -1.60 -1.55 -1.50 -1.45 -1.40 -1.35 -1.30 -1.25 -1.20 -1.15 -1.10 -1.05 -1.00 -0.95 -0.90 -0.85 -0.80 -0.75 -0.70 -0.65 -0.60 -0.55 -0.50 -0.45 -0.40 -0.35 -0.30 -0.25 -0.20 -0.15 -0.10 -0.05 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.55 2.60 2.65 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 3.55 3.60 3.65 3.70 3.75 3.80 3.85 3.90 3.95 4.00 -5 0 5 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? μ=-1 μ=1 0.0 0.1 0.2 0.3 0.4 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.000 0.002 0.004 0.006 0.008 0.010 0.012 0.014 0.016 0.018 0.020 0.022 0.024 0.026 0.028 0.030 0.032 0.034 0.036 0.038 0.040 0.042 0.044 0.046 0.048 0.050 0.052 0.054 0.056 0.058 0.060 0.062 0.064 0.066 0.068 0.070 0.072 0.074 0.076 0.078 0.080 0.082 0.084 0.086 0.088 0.090 0.092 0.094 0.096 0.098 0.100 0.102 0.104 0.106 0.108 0.110 0.112 0.114 0.116 0.118 0.120 0.122 0.124 0.126 0.128 0.130 0.132 0.134 0.136 0.138 0.140 0.142 0.144 0.146 0.148 0.150 0.152 0.154 0.156 0.158 0.160 0.162 0.164 0.166 0.168 0.170 0.172 0.174 0.176 0.178 0.180 0.182 0.184 0.186 0.188 0.190 0.192 0.194 0.196 0.198 0.200 0.202 0.204 0.206 0.208 0.210 0.212 0.214 0.216 0.218 0.220 0.222 0.224 0.226 0.228 0.230 0.232 0.234 0.236 0.238 0.240 0.242 0.244 0.246 0.248 0.250 0.252 0.254 0.256 0.258 0.260 0.262 0.264 0.266 0.268 0.270 0.272 0.274 0.276 0.278 0.280 0.282 0.284 0.286 0.288 0.290 0.292 0.294 0.296 0.298 0.300 0.302 0.304 0.306 0.308 0.310 0.312 0.314 0.316 0.318 0.320 0.322 0.324 0.326 0.328 0.330 0.332 0.334 0.336 0.338 0.340 0.342 0.344 0.346 0.348 0.350 0.352 0.354 0.356 0.358 0.360 0.362 0.364 0.366 0.368 0.370 0.372 0.374 0.376 0.378 0.380 0.382 0.384 0.386 0.388 0.390 0.392 0.394 0.396 0.398 0.400 0.0 0.5 Density Parametric PDF

Stat.quantile_bars

using CategoricalArrays
using Gadfly
set_default_plot_size(14cm, 8cm)
n = 400
group = repeat([-1, 1], inner=200)
x = randn(n) .+ group

plot(x=x, color=categorical(group), Guide.colorkey(title="", pos=[3.6,0.7]),
    layer(Stat.density, Geom.line, Geom.polygon(fill=true, preserve_order=true), alpha=[0.4]),
    layer(Stat.quantile_bars(quantiles=[0.05, 0.95]), Geom.segment),
    Guide.title("Density with bars showing the central 90% CI"),
    Guide.ylabel("Density"), Coord.cartesian(xmin=-4, xmax=4)
)
x -4 -2 0 2 4 -4.0 -3.5 -3.0 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 -4.00 -3.95 -3.90 -3.85 -3.80 -3.75 -3.70 -3.65 -3.60 -3.55 -3.50 -3.45 -3.40 -3.35 -3.30 -3.25 -3.20 -3.15 -3.10 -3.05 -3.00 -2.95 -2.90 -2.85 -2.80 -2.75 -2.70 -2.65 -2.60 -2.55 -2.50 -2.45 -2.40 -2.35 -2.30 -2.25 -2.20 -2.15 -2.10 -2.05 -2.00 -1.95 -1.90 -1.85 -1.80 -1.75 -1.70 -1.65 -1.60 -1.55 -1.50 -1.45 -1.40 -1.35 -1.30 -1.25 -1.20 -1.15 -1.10 -1.05 -1.00 -0.95 -0.90 -0.85 -0.80 -0.75 -0.70 -0.65 -0.60 -0.55 -0.50 -0.45 -0.40 -0.35 -0.30 -0.25 -0.20 -0.15 -0.10 -0.05 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.55 2.60 2.65 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 3.55 3.60 3.65 3.70 3.75 3.80 3.85 3.90 3.95 4.00 -5 0 5 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? -1 1 0.0 0.1 0.2 0.3 0.4 0.5 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 0.000 0.002 0.004 0.006 0.008 0.010 0.012 0.014 0.016 0.018 0.020 0.022 0.024 0.026 0.028 0.030 0.032 0.034 0.036 0.038 0.040 0.042 0.044 0.046 0.048 0.050 0.052 0.054 0.056 0.058 0.060 0.062 0.064 0.066 0.068 0.070 0.072 0.074 0.076 0.078 0.080 0.082 0.084 0.086 0.088 0.090 0.092 0.094 0.096 0.098 0.100 0.102 0.104 0.106 0.108 0.110 0.112 0.114 0.116 0.118 0.120 0.122 0.124 0.126 0.128 0.130 0.132 0.134 0.136 0.138 0.140 0.142 0.144 0.146 0.148 0.150 0.152 0.154 0.156 0.158 0.160 0.162 0.164 0.166 0.168 0.170 0.172 0.174 0.176 0.178 0.180 0.182 0.184 0.186 0.188 0.190 0.192 0.194 0.196 0.198 0.200 0.202 0.204 0.206 0.208 0.210 0.212 0.214 0.216 0.218 0.220 0.222 0.224 0.226 0.228 0.230 0.232 0.234 0.236 0.238 0.240 0.242 0.244 0.246 0.248 0.250 0.252 0.254 0.256 0.258 0.260 0.262 0.264 0.266 0.268 0.270 0.272 0.274 0.276 0.278 0.280 0.282 0.284 0.286 0.288 0.290 0.292 0.294 0.296 0.298 0.300 0.302 0.304 0.306 0.308 0.310 0.312 0.314 0.316 0.318 0.320 0.322 0.324 0.326 0.328 0.330 0.332 0.334 0.336 0.338 0.340 0.342 0.344 0.346 0.348 0.350 0.352 0.354 0.356 0.358 0.360 0.362 0.364 0.366 0.368 0.370 0.372 0.374 0.376 0.378 0.380 0.382 0.384 0.386 0.388 0.390 0.392 0.394 0.396 0.398 0.400 0.402 0.404 0.406 0.408 0.410 0.412 0.414 0.416 0.418 0.420 0.422 0.424 0.426 0.428 0.430 0.432 0.434 0.436 0.438 0.440 0.442 0.444 0.446 0.448 0.450 0.452 0.454 0.456 0.458 0.460 0.462 0.464 0.466 0.468 0.470 0.472 0.474 0.476 0.478 0.480 0.482 0.484 0.486 0.488 0.490 0.492 0.494 0.496 0.498 0.500 0.0 0.5 Density Density with bars showing the central 90% CI

Stat.dodge

using DataFrames, Gadfly, RDatasets, Statistics
set_default_plot_size(21cm, 8cm)
salaries = dataset("car","Salaries")
salaries.Salary /= 1000.0
salaries.Discipline = ["Discipline $(x)" for x in salaries.Discipline]
df = combine(groupby(salaries, [:Rank, :Discipline]), :Salary.=>mean)
df.label = string.(round.(Int, df.Salary_mean))

p1 = plot(df, x=:Discipline, y=:Salary_mean, color=:Rank,
    Scale.x_discrete(levels=["Discipline A", "Discipline B"]),
    label=:label, Geom.label(position=:centered), Stat.dodge(position=:stack),
    Geom.bar(position=:stack)
)
p2 = plot(df, y=:Discipline, x=:Salary_mean, color=:Rank,
    Coord.cartesian(yflip=true), Scale.y_discrete,
    label=:label, Geom.label(position=:right), Stat.dodge(axis=:y),
    Geom.bar(position=:dodge, orientation=:horizontal),
    Scale.color_discrete(levels=["Prof", "AssocProf", "AsstProf"]),
    Guide.yticks(orientation=:vertical), Guide.ylabel(nothing)
)
hstack(p1, p2)
Salary_mean 0 50 100 150 0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 105 110 115 120 125 130 135 140 145 150 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 8.5 9.0 9.5 10.0 10.5 11.0 11.5 12.0 12.5 13.0 13.5 14.0 14.5 15.0 15.5 16.0 16.5 17.0 17.5 18.0 18.5 19.0 19.5 20.0 20.5 21.0 21.5 22.0 22.5 23.0 23.5 24.0 24.5 25.0 25.5 26.0 26.5 27.0 27.5 28.0 28.5 29.0 29.5 30.0 30.5 31.0 31.5 32.0 32.5 33.0 33.5 34.0 34.5 35.0 35.5 36.0 36.5 37.0 37.5 38.0 38.5 39.0 39.5 40.0 40.5 41.0 41.5 42.0 42.5 43.0 43.5 44.0 44.5 45.0 45.5 46.0 46.5 47.0 47.5 48.0 48.5 49.0 49.5 50.0 50.5 51.0 51.5 52.0 52.5 53.0 53.5 54.0 54.5 55.0 55.5 56.0 56.5 57.0 57.5 58.0 58.5 59.0 59.5 60.0 60.5 61.0 61.5 62.0 62.5 63.0 63.5 64.0 64.5 65.0 65.5 66.0 66.5 67.0 67.5 68.0 68.5 69.0 69.5 70.0 70.5 71.0 71.5 72.0 72.5 73.0 73.5 74.0 74.5 75.0 75.5 76.0 76.5 77.0 77.5 78.0 78.5 79.0 79.5 80.0 80.5 81.0 81.5 82.0 82.5 83.0 83.5 84.0 84.5 85.0 85.5 86.0 86.5 87.0 87.5 88.0 88.5 89.0 89.5 90.0 90.5 91.0 91.5 92.0 92.5 93.0 93.5 94.0 94.5 95.0 95.5 96.0 96.5 97.0 97.5 98.0 98.5 99.0 99.5 100.0 100.5 101.0 101.5 102.0 102.5 103.0 103.5 104.0 104.5 105.0 105.5 106.0 106.5 107.0 107.5 108.0 108.5 109.0 109.5 110.0 110.5 111.0 111.5 112.0 112.5 113.0 113.5 114.0 114.5 115.0 115.5 116.0 116.5 117.0 117.5 118.0 118.5 119.0 119.5 120.0 120.5 121.0 121.5 122.0 122.5 123.0 123.5 124.0 124.5 125.0 125.5 126.0 126.5 127.0 127.5 128.0 128.5 129.0 129.5 130.0 130.5 131.0 131.5 132.0 132.5 133.0 133.5 134.0 134.5 135.0 135.5 136.0 136.5 137.0 137.5 138.0 138.5 139.0 139.5 140.0 140.5 141.0 141.5 142.0 142.5 143.0 143.5 144.0 144.5 145.0 145.5 146.0 146.5 147.0 147.5 148.0 148.5 149.0 149.5 150.0 0 200 Prof AssocProf AsstProf Rank 133 85 101 120 83 74 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? Discipline B Discipline A Discipline B Discipline A Discipline Discipline A Discipline B Prof AsstProf AssocProf Rank 133 85 101 120 83 74 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 0 100 200 300 400 0 20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 102 104 106 108 110 112 114 116 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 150 152 154 156 158 160 162 164 166 168 170 172 174 176 178 180 182 184 186 188 190 192 194 196 198 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 234 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 274 276 278 280 282 284 286 288 290 292 294 296 298 300 302 304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 334 336 338 340 342 344 346 348 350 352 354 356 358 360 362 364 366 368 370 372 374 376 378 380 382 384 386 388 390 392 394 396 398 400 0 500 Salary_mean

Stat.func

using DataFrames, Gadfly
set_default_plot_size(14cm, 8cm)
sigmoid(x) = 1 ./ (1 .+ exp.(-x))
npoints = 30
gshift, x = rand([0,2], npoints), range(-9, 9, length=npoints)
y, ye = sigmoid(x+gshift), 0.2*rand(npoints)
df = DataFrame(x=x, y=y, ymin=y-ye, ymax=y+ye, g=gshift)

plot(y=[sigmoid, x->sigmoid(x+2)], xmin=[-10], xmax=[10],
    Geom.line, Stat.func(100), color=[0,2], Guide.xlabel("x"),
    layer(df, x=:x, y=:y, ymin=:ymin, ymax=:ymax, color=:g,
        Geom.point, Geom.yerrorbar, Stat.x_jitter(range=1)),
    Scale.color_discrete_manual("deepskyblue","yellow3", levels=[0,2]),
    Guide.colorkey(title="Function", labels=["Sigmoid(x)", "Sigmoid(x+2)"]),
    Theme(errorbar_cap_length=0mm, key_position=:inside)
)
x -10 -5 0 5 10 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 -10.0 -9.9 -9.8 -9.7 -9.6 -9.5 -9.4 -9.3 -9.2 -9.1 -9.0 -8.9 -8.8 -8.7 -8.6 -8.5 -8.4 -8.3 -8.2 -8.1 -8.0 -7.9 -7.8 -7.7 -7.6 -7.5 -7.4 -7.3 -7.2 -7.1 -7.0 -6.9 -6.8 -6.7 -6.6 -6.5 -6.4 -6.3 -6.2 -6.1 -6.0 -5.9 -5.8 -5.7 -5.6 -5.5 -5.4 -5.3 -5.2 -5.1 -5.0 -4.9 -4.8 -4.7 -4.6 -4.5 -4.4 -4.3 -4.2 -4.1 -4.0 -3.9 -3.8 -3.7 -3.6 -3.5 -3.4 -3.3 -3.2 -3.1 -3.0 -2.9 -2.8 -2.7 -2.6 -2.5 -2.4 -2.3 -2.2 -2.1 -2.0 -1.9 -1.8 -1.7 -1.6 -1.5 -1.4 -1.3 -1.2 -1.1 -1.0 -0.9 -0.8 -0.7 -0.6 -0.5 -0.4 -0.3 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 9.0 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10.0 -10 0 10 9.0141046600311480.9998766054240137 8.6927540025953610.9997704844756888 8.1439459673205050.9995731370872474 7.5339262418893150.9992062365897446 6.6189131357520840.9998000496254946 5.547565393392760.9996281141773367 5.0757871084144220.9949124687501931 4.3911606127179690.9987143089615129 4.1168057252619660.9976109861916291 3.1354122445179220.9955650454954019 2.73212982377129960.9917814049431126 2.3910512889365950.8977447634316474 1.2028286926363470.8251626114337308 0.76812760129307690.7172851124799586 0.151905903768971230.9097301769472593 -0.249320961278248680.8441788063113398 -0.8281913982033450.2827148875200414 -1.58342552357296950.610229226597668 -2.10681175390071160.45700301154629586 -3.18894341318910430.05769799230857057 -3.2464350186055960.03186716596599677 -4.1491536301362420.11562972700203106 -4.6106589343894060.009422642306984511 -4.9267611518636330.005087531249807014 -5.8616504657392570.019907474356029627 -6.7756507565596650.0014755595155596822 -7.01153531072300850.00583556787482027 -7.9328016384674130.00042686291275275794 -8.4381743082221340.00022951552431103904 -8.9822199994533580.0009110511944006454 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? Sigmoid(x) Sigmoid(x+2) Function -0.5 0.0 0.5 1.0 1.5 -0.5 -0.4 -0.3 -0.2 -0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 -0.50 -0.49 -0.48 -0.47 -0.46 -0.45 -0.44 -0.43 -0.42 -0.41 -0.40 -0.39 -0.38 -0.37 -0.36 -0.35 -0.34 -0.33 -0.32 -0.31 -0.30 -0.29 -0.28 -0.27 -0.26 -0.25 -0.24 -0.23 -0.22 -0.21 -0.20 -0.19 -0.18 -0.17 -0.16 -0.15 -0.14 -0.13 -0.12 -0.11 -0.10 -0.09 -0.08 -0.07 -0.06 -0.05 -0.04 -0.03 -0.02 -0.01 0.00 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.10 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.20 0.21 0.22 0.23 0.24 0.25 0.26 0.27 0.28 0.29 0.30 0.31 0.32 0.33 0.34 0.35 0.36 0.37 0.38 0.39 0.40 0.41 0.42 0.43 0.44 0.45 0.46 0.47 0.48 0.49 0.50 0.51 0.52 0.53 0.54 0.55 0.56 0.57 0.58 0.59 0.60 0.61 0.62 0.63 0.64 0.65 0.66 0.67 0.68 0.69 0.70 0.71 0.72 0.73 0.74 0.75 0.76 0.77 0.78 0.79 0.80 0.81 0.82 0.83 0.84 0.85 0.86 0.87 0.88 0.89 0.90 0.91 0.92 0.93 0.94 0.95 0.96 0.97 0.98 0.99 1.00 1.01 1.02 1.03 1.04 1.05 1.06 1.07 1.08 1.09 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19 1.20 1.21 1.22 1.23 1.24 1.25 1.26 1.27 1.28 1.29 1.30 1.31 1.32 1.33 1.34 1.35 1.36 1.37 1.38 1.39 1.40 1.41 1.42 1.43 1.44 1.45 1.46 1.47 1.48 1.49 1.50 -0.5 0.0 0.5 1.0 1.5 y

Stat.qq

using Distributions, Gadfly, RDatasets
set_default_plot_size(21cm, 8cm)
iris, geyser = dataset.("datasets", ["iris", "faithful"])
df = combine(groupby(iris, :Species), :SepalLength=>(x->fit(Normal, x))=>:d)
ds2 = fit.([Normal, Uniform], [geyser.Eruptions])

yeqx(x=4:6) = layer(x=x, Geom.abline(color="gray80"))
xylabs = [Guide.xlabel("Theoretical q"), Guide.ylabel("Sample q")]
p1 = plot(df, x=:d, y=iris[:,1], color=:Species, Stat.qq, yeqx(4:8),
    xylabs..., Guide.title("3 Samples, 1 Distribution"))
p2 = plot(geyser, x=ds2, y=:Eruptions, color=["Normal","Uniform"], Stat.qq,
    yeqx(0:6), xylabs..., Guide.title("1 Sample, 2 Distributions"),
  Theme(discrete_highlight_color=c->nothing, alphas=[0.5], point_size=2pt)
)
hstack(p1, p2)
Theoretical q 0 2 4 6 8 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.55 2.60 2.65 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 3.55 3.60 3.65 3.70 3.75 3.80 3.85 3.90 3.95 4.00 4.05 4.10 4.15 4.20 4.25 4.30 4.35 4.40 4.45 4.50 4.55 4.60 4.65 4.70 4.75 4.80 4.85 4.90 4.95 5.00 5.05 5.10 5.15 5.20 5.25 5.30 5.35 5.40 5.45 5.50 5.55 5.60 5.65 5.70 5.75 5.80 5.85 5.90 5.95 6.00 6.05 6.10 6.15 6.20 6.25 6.30 6.35 6.40 6.45 6.50 6.55 6.60 6.65 6.70 6.75 6.80 6.85 6.90 6.95 7.00 7.05 7.10 7.15 7.20 7.25 7.30 7.35 7.40 7.45 7.50 7.55 7.60 7.65 7.70 7.75 7.80 7.85 7.90 7.95 8.00 0 10 Normal Uniform Color 5.0935661764705885.0835606617647064 5.0806985294117645.050187500000002 5.0678308823529415.01680330882353 5.0549632352941174.967362132352942 5.0420955882352934.933 5.0292279411764714.933 5.0163602941176464.917288602941177 5.0034926470588234.9 4.9906254.8920312500000005 4.9777573529411764.867652573529412 4.9648897058823534.8421562499999995 4.9520220588235294.833 4.9391544117647064.8257352941176475 4.9262867647058824.817 4.91341911764705854.80940625 4.9005514705882354.8 4.8876838235294114.8 4.8748161764705884.8 4.8619485294117644.8 4.8490808823529414.8 4.8362132352941174.792781249999999 4.8233455882352934.776264705882354 4.8104779411764714.75990625 4.7976102941176464.74296875 4.7847426470588234.72603125 4.7718754.7095 4.7590073529411764.7 4.7461397058823534.7 4.7332720588235294.7 4.7204044117647064.7 4.7075367647058824.7 4.69466911764705854.687321691176471 4.6818014705882354.667 4.6689338235294114.66059375 4.6560661764705884.64365625 4.6431985294117644.633 4.6303308823529424.633 4.6174632352941174.627205882352941 4.6045955882352934.61090625 4.5917279411764714.6 4.5788602941176464.6 4.5659926470588234.6 4.5531254.59415625 4.5402573529411764.583 4.5273897058823534.583 4.5145220588235294.583 4.5016544117647064.577735294117647 4.4887867647058824.567 4.47591911764705854.567 4.4630514705882354.56159375 4.4501838235294114.54465625 4.4373161764705884.533 4.4244485294117644.533 4.4115808823529424.533 4.3987132352941174.533 4.3858455882352934.5282647058823535 4.3729779411764714.512031250000001 4.3601102941176464.5 4.3472426470588234.5 4.3343754.5 4.3215073529411764.5 4.3086397058823534.5 4.2957720588235294.5 4.2829044117647064.5 4.2700367647058824.49553125 4.25716911764705854.478852941176471 4.2443014705882354.467 4.2314338235294114.46271875 4.2185661764705884.45 4.2056985294117644.45 4.1928308823529424.44590625 4.1799632352941174.433 4.1670955882352934.429264705882353 4.1542279411764714.417 4.1413602941176464.417 4.1284926470588244.417 4.1156254.41328125 4.1027573529411764.396343750000001 4.0898897058823534.379617647058823 4.07702205882352954.367 4.0641544117647064.367 4.0512867647058824.366799632352941 4.03841911764705854.36285294117647 4.0255514705882354.35 4.0126838235294114.35 3.9998161764705884.35 3.98694852941176464.34690625 3.9740808823529414.333 3.96121323529411744.333 3.94834558823529364.333 3.935477941176474.333 3.9226102941176474.330382352941177 3.90974264705882354.3142812500000005 3.89687499999999964.3 3.88400735294117634.29740625 3.8711397058823534.283 3.85827205882352954.280676470588236 3.84540441176470574.267 3.8325367647058824.264656250000001 3.81966911764705854.25 3.8068014705882354.25 3.79393382352941134.25 3.7810661764705884.24790625 3.76819852941176464.233 3.7553308823529414.233 3.7424632352941184.229299632352941 3.72959558823529364.19815625 3.716727941176474.181323529411765 3.7038602941176474.167 3.69099264705882354.167 3.67812499999999964.167 3.66525735294117634.16546875 3.6523897058823534.15 3.63952205882352954.15 3.62665441176470574.15 3.6137867647058824.1487187500000005 3.60091911764705854.133 3.5880514705882354.131911764705882 3.57518382352941184.117 3.56231617647058844.1159687499999995 3.54944852941176464.1 3.5365808823529414.09909375 3.52371323529411744.083 3.5108455882352944.083 3.497977941176474.083 3.4851102941176474.083 3.4722426470588234.082441176470589 3.45937499999999964.067 3.44650735294117634.066531250000001 3.4336397058823534.04959375 3.42077205882352954.033 3.4079044117647064.032454044117647 3.3950367647058824.0 3.38216911764705854.0 3.3693014705882354.0 3.35643382352941184.0 3.34356617647058844.0 3.33069852941176464.0 3.31783088235294083.967303308823529 3.30496323529411743.9660128676470587 3.2920955882352943.9502647058823532 3.27922794117647073.95 3.2663602941176473.917788602941177 3.25349264705882353.917 3.24062499999999963.917 3.22775735294117633.8841875 3.2148897058823533.8512738970588236 3.20202205882352953.85 3.18915441176470573.8337812500000004 3.17628676470588233.833 3.16341911764705853.833 3.1505514705882353.833 3.13768382352941183.833 3.12481617647058843.818029411764706 3.11194852941176463.7704007352941176 3.09908088235294083.767 3.08621323529411743.75128125 3.0733455882352943.7343437500000003 3.06047794117647073.7183235294117645 3.0476102941176473.6859375 3.03474264705882353.607476102941177 3.02187499999999963.6 3.00900735294117633.6 2.9961397058823533.6 2.98327205882352953.5704577205882355 2.97040441176470573.567 2.95753676470588233.507512867647059 2.94466911764705853.5 2.9318014705882353.455974264705883 2.91893382352941183.421064338235294 2.90606617647058843.373341911764706 2.8931985294117653.3374375 2.88033088235294083.333 2.86746323529411743.3192058823529416 2.8545955882352943.1023860294117647 2.84172794117647072.9242518382352936 2.8288602941176472.88553125 2.81599264705882352.8126636029411767 2.80312499999999962.65909375 2.79025735294117632.6195588235294114 2.7773897058823532.5049227941176464 2.76452205882352952.4280404411764707 2.75165441176470572.417 2.73878676470588232.40296875 2.72591911764705852.4 2.7130514705882352.38609375 2.70018382352941182.369970588235294 2.68731617647058842.35321875 2.6744485294117652.33628125 2.66158088235294082.3201470588235296 2.64871323529411742.30340625 2.6358455882352942.28646875 2.62297794117647072.2703235294117645 2.6101102941176472.2535937500000003 2.59724264705882352.25 2.5843752.23671875 2.57150735294117632.233 2.5586397058823532.2206176470588237 2.54577205882352952.20390625 2.53290441176470572.2 2.52003676470588232.2 2.5071691176470592.18709375 2.4943014705882352.1709117647058824 2.48143382352941182.167 2.46856617647058842.15428125 2.45569852941176462.13734375 2.4428308823529412.1085533088235295 2.42996323529411742.1 2.4170955882352942.1 2.40422794117647072.08759375 2.39136029411764732.083 2.37849264705882352.0714411764705885 2.3656252.0425625 2.35275735294117632.033 2.3398897058823532.0216176470588234 2.32702205882352952.017 2.31415441176470572.017 2.30128676470588232.00509375 2.2884191176470592.0 2.2755514705882352.0 2.26268382352941182.0 2.24981617647058841.98834375 2.23694852941176461.983 2.2240808823529411.983 2.21121323529411741.9722058823529414 2.1983455882352941.967 2.18547794117647071.967 2.17261029411764731.95571875 2.15974264705882351.93878125 2.1468751.933 2.13400735294117631.9225588235294118 2.1211397058823531.917 2.10827205882352951.8950624999999999 2.09540441176470571.883 2.08253676470588231.883 2.0696691176470591.883 2.0568014705882351.8729117647058824 2.04393382352941181.867 2.03106617647058841.867 2.01819852941176461.867 2.0053308823529411.867 1.99246323529411761.867 1.97959558823529421.867 1.96672794117647071.867 1.9538602941176471.85678125 1.94099264705882351.85 1.9281251.8399062499999999 1.91525735294117651.833 1.9023897058823531.833 1.88952205882352951.833 1.8766544117647061.833 1.86378676470588231.833 1.8509191176470591.833 1.83805147058823541.8239117647058825 1.82518382352941181.817 1.81231617647058841.817 1.79944852941176481.80753125 1.78658088235294121.8 1.77371323529411761.8 1.76084558823529421.8 1.74797794117647071.7907812499999998 1.7351102941176471.783 1.72224264705882371.7653474264705882 1.7093751.75 1.69650735294117651.75 1.6836397058823531.75 1.67077205882352951.75 1.6579044117647061.75 1.64503676470588231.7412812500000001 1.6321691176470591.7161966911764706 1.61930147058823541.6833180147058824 1.60643382352941181.6333768382352942 6.796983625202855.0835606617647064 6.3835434404645325.050187500000002 6.1739853104291995.01680330882353 6.028566412525754.967362132352942 5.9155825786507774.933 5.82239380266739654.933 5.7426223436581064.917288602941177 5.6725814740158464.9 5.60993987715886364.8920312500000005 5.553125808262554.867652573529412 5.501027348176954.8421562499999995 5.4528277630190344.833 5.4079087706903114.8257352941176475 5.365790585893294.817 5.3260931082494684.80940625 5.2885098729125364.8 5.2527900251737164.8 5.2187255171784594.8 5.1861418056513654.8 5.154890958103144.8 5.1248464538584064.792781249999999 5.0958992018338934.776264705882354 5.0679544475804354.75990625 5.0409293407337214.74296875 5.0147510000509074.72603125 4.9893549582970444.7095 4.9646839005844864.7 4.9406866319084134.7 4.9173172254959764.7 4.8945343151246164.7 4.8723005030568974.7 4.850581861561824.687321691176471 4.8293475107508594.667 4.80856925907380454.66059375 4.7882212955944134.64365625 4.7682799253133214.633 4.74872334048120154.633 4.729531422162344.627205882352941 4.7106855673518534.61090625 4.69216853778128054.6 4.6739643272143514.6 4.6560580445732064.6 4.6384358106723934.59415625 4.6210846666947174.583 4.60399249283560154.583 4.58714793578389654.583 4.5705403439068264.577735294117647 4.5541597091729534.567 4.5379966149858854.567 4.522042189217894.56159375 4.50628806183060254.54465625 4.4907263265529064.533 4.4753495061563044.533 4.46015052092790754.533 4.4451226599922174.533 4.430259555176594.5282647058823535 4.4155551571528474.512031250000001 4.4010037136197974.5 4.3865997493194644.5 4.37233804770391554.5 4.3582136340907154.5 4.3442217601632434.5 4.3303578896881364.5 4.3166176853360594.5 4.3029969965042734.49553125 4.2894918480502084.478852941176471 4.2760984298547364.467 4.2628130871421934.46271875 4.2496323114915774.45 4.2365527324799024.45 4.2235711099044914.44590625 4.2106843265361274.433 4.19788938135961854.429264705882353 4.1851833832623964.417 4.172563545135424.417 4.1600271783539734.417 4.1475716876088464.41328125 4.135194566061024.396343750000001 4.1228933907953674.379617647058823 4.1106658185514.367 4.0985095817078094.367 4.0864224845104814.366799632352941 4.0744023995128494.36285294117647 4.06244726422683664.35 4.050555077961574.35 4.0387238988393434.35 4.0269518409762414.34690625 4.0152370718161524.333 4.003577809607774.333 3.99197232101501784.333 3.98041891885201434.333 3.96891595993444.330382352941177 3.95746184303942534.3142812500000005 3.946055006967774.3 3.93469392870056644.29740625 3.9233771216455744.283 3.9121031339668614.280676470588236 3.90087054699276744.267 3.8896779736972644.264656250000001 3.87852405725016254.25 3.86740746963192944.25 3.85632691030915584.25 3.8452811049669694.24790625 3.83426880429492824.233 3.8232887828231644.233 3.81233983780571654.229299632352941 3.80142078814822474.19815625 3.79053047337729154.181323529411765 3.7796677526489974.167 3.7688315037942024.167 3.75802062239840634.167 3.747234020914054.16546875 3.73647062780327844.15 3.72572938670929074.15 3.7150092556544864.15 3.70430920626373264.1487187500000005 3.69362822301115434.133 3.6829653024889114.131911764705882 3.6723194526965374.117 3.66168969234945244.1159687499999995 3.6510750502053274.1 3.64047456440705464.09909375 3.6298872818411124.083 3.61931225751016374.083 3.6087485539187944.083 3.5981952404712914.083 3.58765139288046254.082441176470589 3.5771160925864694.067 3.5665884261847154.066531250000001 3.55606748486185434.04959375 3.54555236383898944.033 3.53504216182117234.032454044117647 3.5245359804523284.0 3.514032923774744.0 3.5035320976922514.0 3.49303260943633954.0 3.48253356703424774.0 3.4720340787783364.0 3.4615332526958473.967303308823529 3.4510301960182593.9660128676470587 3.4405240146494153.9502647058823532 3.4300138126315983.95 3.4194986916087333.917788602941177 3.40897775028587223.917 3.39845008388411833.917 3.38791478359012473.8841875 3.37737093599929633.8512738970588236 3.36681762255179343.85 3.35625391896042353.8337812500000004 3.34567889462947533.833 3.33509161206353263.833 3.324491126265263.833 3.3138764841211353.833 3.303246723774053.818029411764706 3.2926008739816763.7704007352941176 3.2819379534594333.767 3.2712569702068543.75128125 3.26055692081610143.7343437500000003 3.2498367897612973.7183235294117645 3.23909554866730883.6859375 3.22833215555653743.607476102941177 3.2175455540721813.6 3.20673467267638523.6 3.19589842382159043.6 3.18503570309329563.5704577205882355 3.1741453883223623.567 3.1632263386648713.507512867647059 3.15227739364742333.5 3.1412973721756593.455974264705883 3.13028507150361833.421064338235294 3.11923926616143143.373341911764706 3.1081587068386583.3374375 3.09704211922042473.333 3.08588820277332283.3192058823529416 3.07469562947782033.1023860294117647 3.0634630425037272.9242518382352936 3.05218905482501322.88553125 3.04087224777002072.8126636029411767 3.02951116950281742.65909375 3.0181043334311622.6195588235294114 3.00665021653618722.5049227941176464 2.9951472576185732.4280404411764707 2.98359385545556942.417 2.9719883668628172.40296875 2.96032910465443562.4 2.9486143354943462.38609375 2.93684227763124462.369970588235294 2.92501109850901742.35321875 2.91311891224375062.33628125 2.9011637769577392.3201470588235296 2.8891436919601062.30340625 2.87705659476277782.28646875 2.86490035791958732.2703235294117645 2.85267278567522052.2535937500000003 2.84037161040956752.25 2.82799448886174032.23671875 2.8155389981166142.233 2.8030026313351682.2206176470588237 2.79038279320819042.20390625 2.7776767951109682.2 2.76488184993446052.2 2.75199506656609662.18709375 2.7390134439906852.1709117647058824 2.7259338649790112.167 2.7127530893283942.15428125 2.6994677466158512.13734375 2.6860743284203792.1085533088235295 2.6725691799663142.1 2.65894849113452822.1 2.64520828678245132.08759375 2.6313444163073442.083 2.6173525423798722.0714411764705885 2.60322812876667162.0425625 2.5889664271511232.033 2.57456246285078952.0216176470588234 2.5600110193177412.017 2.54530662129399682.017 2.53044351647837032.00509375 2.51541565554267972.0 2.5002166703142832.0 2.4848398499176812.0 2.4692781146399851.98834375 2.4535239872526971.983 2.4375695614847021.983 2.42140646729763451.9722058823529414 2.40502583256376121.967 2.38841824068669071.967 2.37157368363498571.95571875 2.35448150977587021.93878125 2.3371303657981941.933 2.3195081318973811.9225588235294118 2.30160184925623531.917 2.28339763868930671.8950624999999999 2.2648806091187341.883 2.24603475430824731.883 2.22684283598938571.883 2.20728625115726641.8729117647058824 2.1873448808761741.867 2.16699691739678271.867 2.1462186657197281.867 2.1249843149087671.867 2.10326567341368961.867 2.08103186134597041.867 2.0582489509746111.867 2.0348795445621741.85678125 2.0108822758861011.85 1.9862112181735431.8399062499999999 1.96081517641967971.833 1.9346368357368671.833 1.90761172889015151.833 1.87966697463669471.833 1.8507197226121821.833 1.8206752183674471.833 1.78942437081922231.8239117647058825 1.75684065929212821.817 1.72277615129687131.817 1.6870563035580511.80753125 1.64947306822111871.8 1.60977559057729751.8 1.56765740578027681.8 1.52273841345155341.7907812499999998 1.47453882829363711.783 1.42244036820803781.7653474264705882 1.36562629931171961.75 1.30298470245474141.75 1.23294383281248091.75 1.15317237380319071.75 1.05998359781980871.75 0.94699976394484021.7412812500000001 0.80158086604138971.7161966911764706 0.59202273600605791.6833180147058824 0.178582551267737261.6333768382352942 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 0 1 2 3 4 5 6 0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 3.25 3.50 3.75 4.00 4.25 4.50 4.75 5.00 5.25 5.50 5.75 6.00 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58 0.60 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78 0.80 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98 1.00 1.02 1.04 1.06 1.08 1.10 1.12 1.14 1.16 1.18 1.20 1.22 1.24 1.26 1.28 1.30 1.32 1.34 1.36 1.38 1.40 1.42 1.44 1.46 1.48 1.50 1.52 1.54 1.56 1.58 1.60 1.62 1.64 1.66 1.68 1.70 1.72 1.74 1.76 1.78 1.80 1.82 1.84 1.86 1.88 1.90 1.92 1.94 1.96 1.98 2.00 2.02 2.04 2.06 2.08 2.10 2.12 2.14 2.16 2.18 2.20 2.22 2.24 2.26 2.28 2.30 2.32 2.34 2.36 2.38 2.40 2.42 2.44 2.46 2.48 2.50 2.52 2.54 2.56 2.58 2.60 2.62 2.64 2.66 2.68 2.70 2.72 2.74 2.76 2.78 2.80 2.82 2.84 2.86 2.88 2.90 2.92 2.94 2.96 2.98 3.00 3.02 3.04 3.06 3.08 3.10 3.12 3.14 3.16 3.18 3.20 3.22 3.24 3.26 3.28 3.30 3.32 3.34 3.36 3.38 3.40 3.42 3.44 3.46 3.48 3.50 3.52 3.54 3.56 3.58 3.60 3.62 3.64 3.66 3.68 3.70 3.72 3.74 3.76 3.78 3.80 3.82 3.84 3.86 3.88 3.90 3.92 3.94 3.96 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 5.02 5.04 5.06 5.08 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24 5.26 5.28 5.30 5.32 5.34 5.36 5.38 5.40 5.42 5.44 5.46 5.48 5.50 5.52 5.54 5.56 5.58 5.60 5.62 5.64 5.66 5.68 5.70 5.72 5.74 5.76 5.78 5.80 5.82 5.84 5.86 5.88 5.90 5.92 5.94 5.96 5.98 6.00 0 10 Sample q 1 Sample, 2 Distributions Theoretical q 4 5 6 7 8 9 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 8.2 8.4 8.6 8.8 9.0 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 5.02 5.04 5.06 5.08 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24 5.26 5.28 5.30 5.32 5.34 5.36 5.38 5.40 5.42 5.44 5.46 5.48 5.50 5.52 5.54 5.56 5.58 5.60 5.62 5.64 5.66 5.68 5.70 5.72 5.74 5.76 5.78 5.80 5.82 5.84 5.86 5.88 5.90 5.92 5.94 5.96 5.98 6.00 6.02 6.04 6.06 6.08 6.10 6.12 6.14 6.16 6.18 6.20 6.22 6.24 6.26 6.28 6.30 6.32 6.34 6.36 6.38 6.40 6.42 6.44 6.46 6.48 6.50 6.52 6.54 6.56 6.58 6.60 6.62 6.64 6.66 6.68 6.70 6.72 6.74 6.76 6.78 6.80 6.82 6.84 6.86 6.88 6.90 6.92 6.94 6.96 6.98 7.00 7.02 7.04 7.06 7.08 7.10 7.12 7.14 7.16 7.18 7.20 7.22 7.24 7.26 7.28 7.30 7.32 7.34 7.36 7.38 7.40 7.42 7.44 7.46 7.48 7.50 7.52 7.54 7.56 7.58 7.60 7.62 7.64 7.66 7.68 7.70 7.72 7.74 7.76 7.78 7.80 7.82 7.84 7.86 7.88 7.90 7.92 7.94 7.96 7.98 8.00 8.02 8.04 8.06 8.08 8.10 8.12 8.14 8.16 8.18 8.20 8.22 8.24 8.26 8.28 8.30 8.32 8.34 8.36 8.38 8.40 8.42 8.44 8.46 8.48 8.50 8.52 8.54 8.56 8.58 8.60 8.62 8.64 8.66 8.68 8.70 8.72 8.74 8.76 8.78 8.80 8.82 8.84 8.86 8.88 8.90 8.92 8.94 8.96 8.98 9.00 3 6 9 setosa versicolor virginica Species 8.2958354558213937.800666666666666 8.0524096556878737.7 7.9275803884085567.7 7.840250011506117.7 7.7719382883646797.6530000000000005 7.7152572044160237.507333333333332 7.6664711067256177.354333333333332 7.6234167407116947.255000000000001 7.5847240589353497.2 7.5494681184702967.2 7.51699374833789957.157 7.4868191404714867.057666666666665 7.4585791494407576.958333333333334 7.4319901182266596.9 7.4068270892253036.9 7.3829084970951256.9 7.360085568971436.861000000000002 7.3382347903727766.8 7.3172524277222196.8 7.2970504665497076.763 7.277553546463116.7 7.2586966121113656.7 7.2404230877025596.7 7.2226834405303476.7 7.2054340377374146.7 7.1886362270325766.7 7.1722555904976216.7 7.1562613336381196.668333333333334 7.1406257811702736.6 7.1253239578256156.569666666666667 7.1103332374543526.5 7.0956330474315936.5 7.0812046181738476.5 7.0670307697046266.5 7.0530957288438576.473000000000001 7.0393849718621236.4 7.0258850884291286.4 7.01258366346300656.4 6.9994691741027216.4 6.9865308995166726.4 6.97375884165463146.4 6.9611436553681116.377666666666668 6.9486765865825246.3 6.93634941741529956.3 6.9241544173070276.3 6.912084299375336.3 6.900132181319266.3 6.888291550300256.3 6.87655623130773556.3 6.8649203585863996.3 6.85337834975993856.283666666666668 6.8419248823352026.2 6.8305548723120536.2 6.8192634546596266.2 6.8080459654497186.186333333333334 6.7968979254638646.1 6.785815025112696.1 6.77479311052518356.1 6.76382817068187156.1 6.752916325480046.1 6.742053814631396.090333333333334 6.73123698730309356.0 6.7204622924224546.0 6.7097262695733266.0 6.6990255404194286.0 6.6883568005956626.0 6.6777168120138375.994333333333333 6.6671023955336785.9 6.6565104239539475.9 6.6459378152818425.896333333333334 6.635381526241745.8 6.624838545986775.8 6.6143058899787555.8 6.6037805940036985.8 6.5932597082913875.8 6.58274029170860955.8 6.5722194059962985.8 6.5616941100212425.701666666666667 6.5511614540132275.7 6.5406184737582575.7 6.5300621847181555.7 6.5194895760460495.7 6.5088976044663195.7 6.498283187986165.7 6.4876431994043345.7 6.47697445958056855.606999999999998 6.466273730426675.6 6.4555377075775435.6 6.4447630126969035.6 6.4339461853686065.6 6.4230836745199565.6 6.4121718293181255.511 6.4012068894748135.5 6.39018497488730655.5 6.3791020745361325.5 6.3679540345502785.5 6.3567365453403715.5 6.34544512768794365.5 6.3340751176647955.415666666666667 6.3226216502400585.4 6.3110796414135975.4 6.2994437686922615.4 6.2877084496997465.4 6.2758678186807365.4 6.2639157006246675.3196666666666665 6.251845582692975.2203333333333335 6.2396505825846975.2 6.2273234134174735.2 6.2148563446318875.2 6.2022411583453655.122999999999999 6.1894691004833255.1 6.17653082589727555.1 6.163416336536995.1 6.1501149115708695.1 6.1366150281378735.1 6.1229042711561395.1 6.108969230295375.1 6.094795381826155.1 6.0803669525684035.029 6.0656667625456455.0 6.05067604217438155.0 6.0353742188297245.0 6.0197386663618785.0 6.0037444095023755.0 5.9873637729674215.0 5.9705659622625825.0 5.953316559469655.0 5.9355769122974385.0 5.9173033878886324.935666666666666 5.8984464535368874.9 5.878949533450294.9 5.8587475722777774.9 5.8377652096272214.9 5.8159144310285674.9 5.7930915029048724.839666666666667 5.7691729107746934.8 5.7440098817733384.8 5.717420850559244.8 5.6891808595285114.8 5.6590062516620974.743 5.6265318815297014.7 5.5912759410646484.644333333333333 5.5525832592883014.6 5.5095288932743794.6 5.4607427955839744.6 5.4040617116353174.547 5.3357499884938874.447666666666667 5.2484196115914394.4 5.1235903443121244.4 4.8801645441786054.349666666666667 7.3223243852318657.800666666666666 7.1247250664161247.7 7.0233957160796717.7 6.9525058474692777.7 6.8970542480395037.6530000000000005 6.8510437447491837.507333333333332 6.8114419454903757.354333333333332 6.7764928423479457.255000000000001 6.7450843081746317.2 6.7164655265324157.2 6.6901046666169437.157 6.6656106238463527.057666666666665 6.6426869937793116.958333333333334 6.621103519665256.9 6.6006775936242096.9 6.5812618311645096.9 6.5627354668754776.861000000000002 6.5449982386756756.8 6.5279659415049536.8 6.5115671301865126.763 6.4957406314094576.7 6.4804336369133356.7 6.4656002216649836.7 6.4512001778103966.7 6.4371980866598596.7 6.4235625724660016.7 6.41026569670632456.7 6.3972824621491496.668333333333334 6.3845904035618536.6 6.3721692474317936.569666666666667 6.3600006271282176.5 6.3480678429559336.5 6.3363556588269376.5 6.3248501290064366.5 6.3135384497175236.473000000000001 6.3024088314167816.4 6.29145038835532856.4 6.280653042670766.4 6.27000744075515656.4 6.2595048800428086.4 6.2491372446811086.4 6.2388969488062146.377666666666668 6.22877688635476.3 6.2187703865135416.3 6.2088711740511366.3 6.1990733338878476.3 6.1893712793603936.3 6.179759723714196.3 6.1702336544243516.3 6.1607883100019386.3 6.1514191589890916.283666666666668 6.1421218808864216.2 6.13289234878976.2 6.1237266135415886.2 6.1146208892285336.186333333333334 6.10557153987391656.1 6.09657506719643656.1 6.0876280993181686.1 6.0787273803199946.1 6.0698697605536346.1 6.06105218762938156.090333333333334 6.0522716980073026.0 6.0435254091271016.0 6.0348105120183556.0 6.0261242643384376.0 6.0174639837903516.0 6.0088270418769515.994333333333333 6.0002108579516835.9 5.9916128935291685.9 5.983030646821685.896333333333334 5.9744616474699185.8 5.9659034514384085.8 5.9573536360475875.8 5.9488097951159195.8 5.9402695341865075.8 5.9317304658134935.8 5.9231902048840815.8 5.91464636395241255.701666666666667 5.90609654856159155.7 5.89753835253008155.7 5.888969353178325.7 5.8803871064708325.7 5.8717891420483175.7 5.8631729581230495.7 5.8545360162096495.7 5.8458757356615635.606999999999998 5.8371894879816455.6 5.8284745908728995.6 5.8197283019926985.6 5.8109478123706185.6 5.8021302394463665.6 5.7932726196800065.511 5.78437190068183155.5 5.7754249328035635.5 5.7664284601260835.5 5.7573791107714675.5 5.7482733864584125.5 5.73910765121035.5 5.7298781191135795.415666666666667 5.7205808410109095.4 5.7112116899980635.4 5.7017663455756485.4 5.692240276285815.4 5.6826287206396075.4 5.67292666611215255.3196666666666665 5.66312882594886355.2203333333333335 5.6532296134864595.2 5.64322311364535.2 5.6331030511937875.2 5.62286275531889155.122999999999999 5.6124951199571925.1 5.6019925592448435.1 5.591346957329245.1 5.5805496116446715.1 5.56959116858321855.1 5.5584615502824775.1 5.5471498709935645.1 5.5356443411730635.1 5.5239321570440675.029 5.5119993728717835.0 5.4998307525682075.0 5.4874095964381475.0 5.4747175378508515.0 5.4617343032936755.0 5.4484374275339995.0 5.4348019133401415.0 5.4207998221896045.0 5.4063997783350175.0 5.3915663630866654.935666666666666 5.3762593685905434.9 5.3604328698134884.9 5.3440340584950474.9 5.3270017613243254.9 5.3092645331245234.9 5.2907381688354914.839666666666667 5.2713224063757914.8 5.250896480334754.8 5.2293130062206894.8 5.20638937615364754.8 5.1818953333830574.743 5.15553447346758454.7 5.1269156918253694.644333333333333 5.0955071576520544.6 5.0605580545096254.6 5.0209562552508174.6 4.97494575196049654.547 4.91949415253072254.447666666666667 4.8486042839203274.4 4.7472749335838764.4 4.5496756147681364.349666666666667 5.9527112830820437.800666666666666 5.817772082239167.7 5.7485749734724067.7 5.7001647751201367.7 5.6622972634436887.6530000000000005 5.6308770106736667.507333333333332 5.6038332173248297.354333333333332 5.5799667178020637.255000000000001 5.5585180482095047.2 5.5389744812223197.2 5.5209728332822177.157 5.5042460217897297.057666666666665 5.4885916342128736.958333333333334 5.473852429817746.9 5.4599037069528386.9 5.44664481777361956.9 5.43399329242085656.861000000000002 5.4218806626162926.8 5.4102494253098586.8 5.3990507910870996.763 5.38824298511936656.7 5.3777899450127916.7 5.3676603088815566.7 5.35782661906174256.7 5.3482646883764226.7 5.3389530905458826.7 5.3298727465473736.7 5.3210065859451976.668333333333334 5.3123392673882056.6 5.303856946235586.569666666666667 5.2955470800428926.5 5.28739826470441356.5 5.2794000956015896.5 5.2715430492890966.5 5.2638183821567146.473000000000001 5.2562180432072216.4 5.2487345986383996.4 5.2413611663480866.4 5.2340913588224716.4 5.2269192331399446.4 5.2198392470411936.4 5.2128462201925456.377666666666668 5.20593529991276.3 5.1991019307498266.3 5.1923418273918976.3 5.1856509504721586.3 5.1790254848970996.3 5.1724618203787776.3 5.1659565338987996.3 5.1595063738694796.3 5.1531082457897536.283666666666668 5.1467591992206286.2 5.1404564159279066.2 5.1341971990594966.2 5.127978963241366.186333333333334 5.12179922549034756.1 5.1156555968544826.1 5.1095457747017746.1 5.1034675355876976.1 5.0974187286393436.1 5.0913972694010046.090333333333334 5.0854011340918676.0 5.0794283542315486.0 5.07347701159367856.0 5.0675452334515466.0 5.0616311880831836.0 5.0557330805061665.994333333333333 5.0498491484149065.9 5.043977658295395.9 5.0381169016941765.896333333333334 5.03226519162007255.8 5.0264208590582515.8 5.0205822495776825.8 5.0147477200137265.8 5.0089156352084175.8 5.0030843647915815.8 4.9972522799862735.8 4.99141775042231655.701666666666667 4.9855791409417485.7 4.9797348083799265.7 4.9738830983058235.7 4.9680223417046095.7 4.96215085158509255.7 4.95626691949383255.7 4.9503688119168165.7 4.9444547665484535.606999999999998 4.938522988406325.6 4.93257164576845055.6 4.9265988659081325.6 4.9206027305989945.6 4.9145812713606565.6 4.9085324644123025.511 4.9024542252982255.5 4.8963444031455165.5 4.8902007745096515.5 4.88402103675863855.5 4.8778028009405025.5 4.8715435840720935.5 4.8652408007793715.415666666666667 4.8588917542102465.4 4.8524936261305215.4 4.8460434661011995.4 4.8395381796212225.4 4.83297451510295.4 4.8263490495278415.3196666666666665 4.8196581726081025.2203333333333335 4.8128980692501725.2 4.80606470008729855.2 4.7991537798074545.2 4.79216075295880555.122999999999999 4.7850807668600545.1 4.7779086411775275.1 4.7706388336519135.1 4.76326540136165.1 4.7557819567927775.1 4.7481816178432855.1 4.7404569507109035.1 4.732599904398415.1 4.7246017352955855.029 4.7164529199571065.0 4.7081430537644185.0 4.6996607326117945.0 4.6909934140548025.0 4.68212725345262555.0 4.6730469094541175.0 4.6637353116235775.0 4.6541733809382565.0 4.6443396911184435.0 4.6342100549872084.935666666666666 4.6237570148806324.9 4.61294920891294.9 4.6017505746901414.9 4.5901193373837064.9 4.5780067075791424.9 4.5653551822263794.839666666666667 4.55209629304716054.8 4.5381475701822594.8 4.5234083657871264.8 4.5077539782102694.8 4.4910271667177824.743 4.4730255187776794.7 4.4534819517904944.644333333333333 4.4320332821979364.6 4.408166782675174.6 4.3811229893263334.6 4.3497027365563114.547 4.3118352248798634.447666666666667 4.2634250265275924.4 4.1942279177608394.4 4.05928871691795754.349666666666667 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 4 5 6 7 8 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 5.02 5.04 5.06 5.08 5.10 5.12 5.14 5.16 5.18 5.20 5.22 5.24 5.26 5.28 5.30 5.32 5.34 5.36 5.38 5.40 5.42 5.44 5.46 5.48 5.50 5.52 5.54 5.56 5.58 5.60 5.62 5.64 5.66 5.68 5.70 5.72 5.74 5.76 5.78 5.80 5.82 5.84 5.86 5.88 5.90 5.92 5.94 5.96 5.98 6.00 6.02 6.04 6.06 6.08 6.10 6.12 6.14 6.16 6.18 6.20 6.22 6.24 6.26 6.28 6.30 6.32 6.34 6.36 6.38 6.40 6.42 6.44 6.46 6.48 6.50 6.52 6.54 6.56 6.58 6.60 6.62 6.64 6.66 6.68 6.70 6.72 6.74 6.76 6.78 6.80 6.82 6.84 6.86 6.88 6.90 6.92 6.94 6.96 6.98 7.00 7.02 7.04 7.06 7.08 7.10 7.12 7.14 7.16 7.18 7.20 7.22 7.24 7.26 7.28 7.30 7.32 7.34 7.36 7.38 7.40 7.42 7.44 7.46 7.48 7.50 7.52 7.54 7.56 7.58 7.60 7.62 7.64 7.66 7.68 7.70 7.72 7.74 7.76 7.78 7.80 7.82 7.84 7.86 7.88 7.90 7.92 7.94 7.96 7.98 8.00 4 6 8 Sample q 3 Samples, 1 Distribution

Stat.smooth

using Compose, Gadfly, RDatasets
set_default_plot_size(21cm,8cm)
salaries = dataset("car","Salaries")
salaries.Salary /= 1000.0
salaries.Discipline = ["Discipline $(x)" for x in salaries.Discipline]

p = plot(salaries[salaries.Rank.=="Prof",:], x=:YrsService, y=:Salary,
    color=:Sex, xgroup = :Discipline,
    Geom.subplot_grid(Geom.point,
  layer(Stat.smooth(method=:lm, levels=[0.95, 0.99]), Geom.line, Geom.ribbon)),
    Scale.xgroup(levels=["Discipline A", "Discipline B"]),
    Guide.colorkey(title="", pos=[0.43w, -0.4h]),
    Theme(point_size=2pt, alphas=[0.5])
)
YrsService by Discipline Discipline B Discipline A 0 10 20 30 40 50 60 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0 22.5 25.0 27.5 30.0 32.5 35.0 37.5 40.0 42.5 45.0 47.5 50.0 52.5 55.0 57.5 60.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 8.2 8.4 8.6 8.8 9.0 9.2 9.4 9.6 9.8 10.0 10.2 10.4 10.6 10.8 11.0 11.2 11.4 11.6 11.8 12.0 12.2 12.4 12.6 12.8 13.0 13.2 13.4 13.6 13.8 14.0 14.2 14.4 14.6 14.8 15.0 15.2 15.4 15.6 15.8 16.0 16.2 16.4 16.6 16.8 17.0 17.2 17.4 17.6 17.8 18.0 18.2 18.4 18.6 18.8 19.0 19.2 19.4 19.6 19.8 20.0 20.2 20.4 20.6 20.8 21.0 21.2 21.4 21.6 21.8 22.0 22.2 22.4 22.6 22.8 23.0 23.2 23.4 23.6 23.8 24.0 24.2 24.4 24.6 24.8 25.0 25.2 25.4 25.6 25.8 26.0 26.2 26.4 26.6 26.8 27.0 27.2 27.4 27.6 27.8 28.0 28.2 28.4 28.6 28.8 29.0 29.2 29.4 29.6 29.8 30.0 30.2 30.4 30.6 30.8 31.0 31.2 31.4 31.6 31.8 32.0 32.2 32.4 32.6 32.8 33.0 33.2 33.4 33.6 33.8 34.0 34.2 34.4 34.6 34.8 35.0 35.2 35.4 35.6 35.8 36.0 36.2 36.4 36.6 36.8 37.0 37.2 37.4 37.6 37.8 38.0 38.2 38.4 38.6 38.8 39.0 39.2 39.4 39.6 39.8 40.0 40.2 40.4 40.6 40.8 41.0 41.2 41.4 41.6 41.8 42.0 42.2 42.4 42.6 42.8 43.0 43.2 43.4 43.6 43.8 44.0 44.2 44.4 44.6 44.8 45.0 45.2 45.4 45.6 45.8 46.0 46.2 46.4 46.6 46.8 47.0 47.2 47.4 47.6 47.8 48.0 48.2 48.4 48.6 48.8 49.0 49.2 49.4 49.6 49.8 50.0 50.2 50.4 50.6 50.8 51.0 51.2 51.4 51.6 51.8 52.0 52.2 52.4 52.6 52.8 53.0 53.2 53.4 53.6 53.8 54.0 54.2 54.4 54.6 54.8 55.0 55.2 55.4 55.6 55.8 56.0 56.2 56.4 56.6 56.8 57.0 57.2 57.4 57.6 57.8 58.0 58.2 58.4 58.6 58.8 59.0 59.2 59.4 59.6 59.8 60.0 0 100 0 10 20 30 40 50 60 0.0 2.5 5.0 7.5 10.0 12.5 15.0 17.5 20.0 22.5 25.0 27.5 30.0 32.5 35.0 37.5 40.0 42.5 45.0 47.5 50.0 52.5 55.0 57.5 60.0 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 5.2 5.4 5.6 5.8 6.0 6.2 6.4 6.6 6.8 7.0 7.2 7.4 7.6 7.8 8.0 8.2 8.4 8.6 8.8 9.0 9.2 9.4 9.6 9.8 10.0 10.2 10.4 10.6 10.8 11.0 11.2 11.4 11.6 11.8 12.0 12.2 12.4 12.6 12.8 13.0 13.2 13.4 13.6 13.8 14.0 14.2 14.4 14.6 14.8 15.0 15.2 15.4 15.6 15.8 16.0 16.2 16.4 16.6 16.8 17.0 17.2 17.4 17.6 17.8 18.0 18.2 18.4 18.6 18.8 19.0 19.2 19.4 19.6 19.8 20.0 20.2 20.4 20.6 20.8 21.0 21.2 21.4 21.6 21.8 22.0 22.2 22.4 22.6 22.8 23.0 23.2 23.4 23.6 23.8 24.0 24.2 24.4 24.6 24.8 25.0 25.2 25.4 25.6 25.8 26.0 26.2 26.4 26.6 26.8 27.0 27.2 27.4 27.6 27.8 28.0 28.2 28.4 28.6 28.8 29.0 29.2 29.4 29.6 29.8 30.0 30.2 30.4 30.6 30.8 31.0 31.2 31.4 31.6 31.8 32.0 32.2 32.4 32.6 32.8 33.0 33.2 33.4 33.6 33.8 34.0 34.2 34.4 34.6 34.8 35.0 35.2 35.4 35.6 35.8 36.0 36.2 36.4 36.6 36.8 37.0 37.2 37.4 37.6 37.8 38.0 38.2 38.4 38.6 38.8 39.0 39.2 39.4 39.6 39.8 40.0 40.2 40.4 40.6 40.8 41.0 41.2 41.4 41.6 41.8 42.0 42.2 42.4 42.6 42.8 43.0 43.2 43.4 43.6 43.8 44.0 44.2 44.4 44.6 44.8 45.0 45.2 45.4 45.6 45.8 46.0 46.2 46.4 46.6 46.8 47.0 47.2 47.4 47.6 47.8 48.0 48.2 48.4 48.6 48.8 49.0 49.2 49.4 49.6 49.8 50.0 50.2 50.4 50.6 50.8 51.0 51.2 51.4 51.6 51.8 52.0 52.2 52.4 52.6 52.8 53.0 53.2 53.4 53.6 53.8 54.0 54.2 54.4 54.6 54.8 55.0 55.2 55.4 55.6 55.8 56.0 56.2 56.4 56.6 56.8 57.0 57.2 57.4 57.6 57.8 58.0 58.2 58.4 58.6 58.8 59.0 59.2 59.4 59.6 59.8 60.0 0 100 21,145.028 20,138.0 27,142.5 38,93.519 49,186.96 28,144.309 33,128.25 27,142.023 10,107.986 35,150.376 31,162.15 38,114.596 17,124.312 11,106.231 15,137.317 25,128.464 12,145.0 23,98.053 38,151.445 19,145.098 10,105.45 9,116.518 60,192.253 23,134.778 37,151.65 15,124.714 31,162.221 15,161.101 23,104.428 15,135.027 16,134.55 45,67.559 20,129.6 10,145.2 21,170.0 11,119.5 11,146.0 11,145.35 19,126.2 7,128.4 39,111.35 20,163.2 18,120.0 33,162.2 2,96.545 5,165.0 17,152.5 17,160.4 40,119.7 22,114.5 33,189.409 18,122.1 22,133.7 9,180.0 19,153.75 10,107.5 30,134.0 23,101.0 22,150.0 5,141.136 11,142.467 14,147.349 25,111.751 20,134.185 24,93.164 19,151.575 18,181.257 19,130.664 16,167.284 8,105.89 19,176.5 16,137.167 21,118.971 9,111.168 12,128.148 26,144.651 27,156.938 28,119.015 27,112.696 14,127.512 5,153.303 23,126.933 25,133.217 26,106.689 14,102.235 7,129.676 20,123.683 38,166.024 25,172.272 37,152.708 14,132.825 18,122.96 20,144.64 16,135.585 28,150.743 19,193.0 3,150.48 23,113.398 34,92.391 19,100.131 45,146.856 2,126.32 36,91.412 17,111.512 31,99.418 12,101.0 31,109.785 21,117.704 9,106.639 11,108.875 28,126.621 25,140.096 19,151.768 28,98.193 15,114.778 19,94.384 38,231.545 27,101.299 2,146.5 31,125.196 21,155.75 9,117.256 4,132.261 8,118.223 20,101.0 3,117.15 18,104.8 18,129.0 20,119.25 45,147.765 23,175.0 41,141.5 39,115.0 16,173.2 18,139.75 15,95.329 25,101.738 19,150.564 30,103.106 19,151.292 19,166.605 18,186.023 36,119.45 15,109.305 27,139.219 9,114.33 21,125.192 44,105.0 23,172.505 38,150.68 26,103.649 19,103.275 26,136.66 7,109.707 20,110.515 31,134.69 30,131.95 10,115.435 40,101.036 43,205.5 30,138.771 15,109.646 11,121.946 14,109.954 35,107.309 40,88.709 6,146.8 35,100.351 19,94.35 9,108.1 7,92.05 15,166.8 28,122.5 31,111.35 44,144.05 4,105.26 13,170.5 16,127.1 36,88.6 43,72.3 11,148.8 18,126.3 36,97.15 7,107.3 9,183.8 28,168.5 7,174.5 27,150.5 27,115.8 43,155.865 51,57.8 27,103.6 38,136.5 46,100.6 18,107.1 27,163.2 48,107.2 6,93.0 18,194.8 40,143.25 7,103.7 44,89.65 10,104.35 43,143.94 30,134.8 35,99.0 31,126.0 26,121.2 45,107.55 30,92.55 22,140.3 7,116.45 12,132.0 8,102.0 39,109.0 7,204.0 23,128.8 18,101.1 23,91.1 11,90.45 23,84.273 23,108.2 37,102.6 30,122.875 6,96.2 40,77.202 25,114.0 17,81.7 19,117.555 19,148.75 27,91.0 38,133.9 11,88.175 20,122.4 35,87.8 11,106.608 18,152.664 14,105.668 14,108.262 18,136.0 25,168.635 57,76.84 30,113.278 26,155.5 49,78.162 22,96.614 22,97.262 32,124.309 14,115.313 36,117.515 29,148.5 9,120.806 0,105.0 37,104.279 16,112.429 31,131.205 28,113.543 23,134.885 8,106.294 19,113.068 30,93.904 31,102.58 26,89.565 36,137.0 23,124.75 34,103.45 0 50 100 150 200 250 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 0 250 Male Female Salary
using DataFrames, Gadfly
set_default_plot_size(14cm, 8cm)
x = range(0.1, stop=4.9, length=30)
D = DataFrame(x=x, y=x.+randn(length(x)))
p = plot(D, x=:x, y=:y, Geom.point,
  layer(Stat.smooth(method=:lm, levels=[0.90,0.99]), Geom.line, Geom.ribbon(fill=false)),
     Theme(lowlight_color=c->"gray", line_style=[:solid, :dot])
)
x 0 1 2 3 4 5 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58 0.60 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78 0.80 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98 1.00 1.02 1.04 1.06 1.08 1.10 1.12 1.14 1.16 1.18 1.20 1.22 1.24 1.26 1.28 1.30 1.32 1.34 1.36 1.38 1.40 1.42 1.44 1.46 1.48 1.50 1.52 1.54 1.56 1.58 1.60 1.62 1.64 1.66 1.68 1.70 1.72 1.74 1.76 1.78 1.80 1.82 1.84 1.86 1.88 1.90 1.92 1.94 1.96 1.98 2.00 2.02 2.04 2.06 2.08 2.10 2.12 2.14 2.16 2.18 2.20 2.22 2.24 2.26 2.28 2.30 2.32 2.34 2.36 2.38 2.40 2.42 2.44 2.46 2.48 2.50 2.52 2.54 2.56 2.58 2.60 2.62 2.64 2.66 2.68 2.70 2.72 2.74 2.76 2.78 2.80 2.82 2.84 2.86 2.88 2.90 2.92 2.94 2.96 2.98 3.00 3.02 3.04 3.06 3.08 3.10 3.12 3.14 3.16 3.18 3.20 3.22 3.24 3.26 3.28 3.30 3.32 3.34 3.36 3.38 3.40 3.42 3.44 3.46 3.48 3.50 3.52 3.54 3.56 3.58 3.60 3.62 3.64 3.66 3.68 3.70 3.72 3.74 3.76 3.78 3.80 3.82 3.84 3.86 3.88 3.90 3.92 3.94 3.96 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 0 5 4.96.631090391647861 4.734482758620695.066086528811177 4.5689655172413795.609631415042641 4.4034482758620692.978507868064252 4.23793103448275855.455740571241266 4.0724137931034483.9852399569472987 3.9068965517241382.734988932595699 3.74137931034482742.838490010093868 3.5758620689655172.0906470084434403 3.4103448275862074.056501325888056 3.24482758620689672.797357588796709 3.0793103448275863.2090227386334593 2.9137931034482763.4626171324681927 2.74827586206896562.284481031092637 2.58275862068965533.9397380305346683 2.41724137931034471.4612513243678766 2.25172413793103443.4735120893328846 2.0862068965517240.5246289054909075 1.92068965517241370.997503212778759 1.75517241379310352.5842669378674685 1.5896551724137931.4504400808353632 1.42413793103448282.4157363486894994 1.25862068965517242.152708145435948 1.09310344827586212.4203181125855364 0.92758620689655170.7500129361442378 0.76206896551724132.064553997791261 0.5965517241379310.43545259681447346 0.43103448275862066-2.2441493197847717 0.2655172413793103-0.37138797002961077 0.1-0.00378042408790491 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? -2.5 0.0 2.5 5.0 7.5 -2.5 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 -2.50 -2.45 -2.40 -2.35 -2.30 -2.25 -2.20 -2.15 -2.10 -2.05 -2.00 -1.95 -1.90 -1.85 -1.80 -1.75 -1.70 -1.65 -1.60 -1.55 -1.50 -1.45 -1.40 -1.35 -1.30 -1.25 -1.20 -1.15 -1.10 -1.05 -1.00 -0.95 -0.90 -0.85 -0.80 -0.75 -0.70 -0.65 -0.60 -0.55 -0.50 -0.45 -0.40 -0.35 -0.30 -0.25 -0.20 -0.15 -0.10 -0.05 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 1.05 1.10 1.15 1.20 1.25 1.30 1.35 1.40 1.45 1.50 1.55 1.60 1.65 1.70 1.75 1.80 1.85 1.90 1.95 2.00 2.05 2.10 2.15 2.20 2.25 2.30 2.35 2.40 2.45 2.50 2.55 2.60 2.65 2.70 2.75 2.80 2.85 2.90 2.95 3.00 3.05 3.10 3.15 3.20 3.25 3.30 3.35 3.40 3.45 3.50 3.55 3.60 3.65 3.70 3.75 3.80 3.85 3.90 3.95 4.00 4.05 4.10 4.15 4.20 4.25 4.30 4.35 4.40 4.45 4.50 4.55 4.60 4.65 4.70 4.75 4.80 4.85 4.90 4.95 5.00 5.05 5.10 5.15 5.20 5.25 5.30 5.35 5.40 5.45 5.50 5.55 5.60 5.65 5.70 5.75 5.80 5.85 5.90 5.95 6.00 6.05 6.10 6.15 6.20 6.25 6.30 6.35 6.40 6.45 6.50 6.55 6.60 6.65 6.70 6.75 6.80 6.85 6.90 6.95 7.00 7.05 7.10 7.15 7.20 7.25 7.30 7.35 7.40 7.45 7.50 -2.5 0.0 2.5 5.0 7.5 y

Stat.step

using Gadfly, Random
set_default_plot_size(14cm, 8cm)
Random.seed!(1234)
plot(x=rand(25), y=rand(25), Stat.step, Geom.line)
x 0.0 0.5 1.0 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 0.000 0.005 0.010 0.015 0.020 0.025 0.030 0.035 0.040 0.045 0.050 0.055 0.060 0.065 0.070 0.075 0.080 0.085 0.090 0.095 0.100 0.105 0.110 0.115 0.120 0.125 0.130 0.135 0.140 0.145 0.150 0.155 0.160 0.165 0.170 0.175 0.180 0.185 0.190 0.195 0.200 0.205 0.210 0.215 0.220 0.225 0.230 0.235 0.240 0.245 0.250 0.255 0.260 0.265 0.270 0.275 0.280 0.285 0.290 0.295 0.300 0.305 0.310 0.315 0.320 0.325 0.330 0.335 0.340 0.345 0.350 0.355 0.360 0.365 0.370 0.375 0.380 0.385 0.390 0.395 0.400 0.405 0.410 0.415 0.420 0.425 0.430 0.435 0.440 0.445 0.450 0.455 0.460 0.465 0.470 0.475 0.480 0.485 0.490 0.495 0.500 0.505 0.510 0.515 0.520 0.525 0.530 0.535 0.540 0.545 0.550 0.555 0.560 0.565 0.570 0.575 0.580 0.585 0.590 0.595 0.600 0.605 0.610 0.615 0.620 0.625 0.630 0.635 0.640 0.645 0.650 0.655 0.660 0.665 0.670 0.675 0.680 0.685 0.690 0.695 0.700 0.705 0.710 0.715 0.720 0.725 0.730 0.735 0.740 0.745 0.750 0.755 0.760 0.765 0.770 0.775 0.780 0.785 0.790 0.795 0.800 0.805 0.810 0.815 0.820 0.825 0.830 0.835 0.840 0.845 0.850 0.855 0.860 0.865 0.870 0.875 0.880 0.885 0.890 0.895 0.900 0.905 0.910 0.915 0.920 0.925 0.930 0.935 0.940 0.945 0.950 0.955 0.960 0.965 0.970 0.975 0.980 0.985 0.990 0.995 1.000 0 1 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 0.0 0.5 1.0 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 0.000 0.005 0.010 0.015 0.020 0.025 0.030 0.035 0.040 0.045 0.050 0.055 0.060 0.065 0.070 0.075 0.080 0.085 0.090 0.095 0.100 0.105 0.110 0.115 0.120 0.125 0.130 0.135 0.140 0.145 0.150 0.155 0.160 0.165 0.170 0.175 0.180 0.185 0.190 0.195 0.200 0.205 0.210 0.215 0.220 0.225 0.230 0.235 0.240 0.245 0.250 0.255 0.260 0.265 0.270 0.275 0.280 0.285 0.290 0.295 0.300 0.305 0.310 0.315 0.320 0.325 0.330 0.335 0.340 0.345 0.350 0.355 0.360 0.365 0.370 0.375 0.380 0.385 0.390 0.395 0.400 0.405 0.410 0.415 0.420 0.425 0.430 0.435 0.440 0.445 0.450 0.455 0.460 0.465 0.470 0.475 0.480 0.485 0.490 0.495 0.500 0.505 0.510 0.515 0.520 0.525 0.530 0.535 0.540 0.545 0.550 0.555 0.560 0.565 0.570 0.575 0.580 0.585 0.590 0.595 0.600 0.605 0.610 0.615 0.620 0.625 0.630 0.635 0.640 0.645 0.650 0.655 0.660 0.665 0.670 0.675 0.680 0.685 0.690 0.695 0.700 0.705 0.710 0.715 0.720 0.725 0.730 0.735 0.740 0.745 0.750 0.755 0.760 0.765 0.770 0.775 0.780 0.785 0.790 0.795 0.800 0.805 0.810 0.815 0.820 0.825 0.830 0.835 0.840 0.845 0.850 0.855 0.860 0.865 0.870 0.875 0.880 0.885 0.890 0.895 0.900 0.905 0.910 0.915 0.920 0.925 0.930 0.935 0.940 0.945 0.950 0.955 0.960 0.965 0.970 0.975 0.980 0.985 0.990 0.995 1.000 0 1 y

Stat.unidistribution

using DataFrames, Gadfly, Distributions
using Gadfly: w,h
set_default_plot_size(21cm, 8cm)
D = DataFrame(Dist=["Prior", "Posterior"],
    Density=[Normal(-0.22, 0.02), Normal(-0.29, 0.015)])

xcoord = Coord.cartesian(xmin=-0.4, xmax=-0.1)
gck = Guide.colorkey(title="", pos=[0.5w, -0.4h])
p1 = plot(D, y=:Density, color=:Dist, Guide.title("color=:Dist"), gck,
    layer(Stat.unidistribution, Geom.line, Geom.ribbon, alpha=[0.8]), xcoord)
p2 = plot(D, y=:Density, color=:Dist, layer(Stat.unidistribution, Geom.line),
    layer(Stat.unidistribution([[0.0001, 0.05], [0.95, 0.9999]]), Geom.ribbon),
    Guide.ylabel(nothing), Guide.title("color=:Dist"), gck)
p3 = plot(D, y=:Density, group=:Dist, xcoord, gck,
    layer(Stat.unidistribution([[0.0001, 0.1],[0.1, 0.9], [0.9, 0.9999]]), Geom.ribbon, alpha=[0.8]),
    Scale.color_discrete_manual("orange", "yellow", "coral"), Theme(lowlight_color=identity),
    Guide.title("group=:Dist"), Guide.ylabel(nothing)
)
hstack(p1, p2, p3)
-0.4 -0.3 -0.2 -0.1 -0.40 -0.38 -0.36 -0.34 -0.32 -0.30 -0.28 -0.26 -0.24 -0.22 -0.20 -0.18 -0.16 -0.14 -0.12 -0.10 -0.08 -0.06 -0.04 -0.02 0.00 -0.401 -0.400 -0.399 -0.398 -0.397 -0.396 -0.395 -0.394 -0.393 -0.392 -0.391 -0.390 -0.389 -0.388 -0.387 -0.386 -0.385 -0.384 -0.383 -0.382 -0.381 -0.380 -0.379 -0.378 -0.377 -0.376 -0.375 -0.374 -0.373 -0.372 -0.371 -0.370 -0.369 -0.368 -0.367 -0.366 -0.365 -0.364 -0.363 -0.362 -0.361 -0.360 -0.359 -0.358 -0.357 -0.356 -0.355 -0.354 -0.353 -0.352 -0.351 -0.350 -0.349 -0.348 -0.347 -0.346 -0.345 -0.344 -0.343 -0.342 -0.341 -0.340 -0.339 -0.338 -0.337 -0.336 -0.335 -0.334 -0.333 -0.332 -0.331 -0.330 -0.329 -0.328 -0.327 -0.326 -0.325 -0.324 -0.323 -0.322 -0.321 -0.320 -0.319 -0.318 -0.317 -0.316 -0.315 -0.314 -0.313 -0.312 -0.311 -0.310 -0.309 -0.308 -0.307 -0.306 -0.305 -0.304 -0.303 -0.302 -0.301 -0.300 -0.299 -0.298 -0.297 -0.296 -0.295 -0.294 -0.293 -0.292 -0.291 -0.290 -0.289 -0.288 -0.287 -0.286 -0.285 -0.284 -0.283 -0.282 -0.281 -0.280 -0.279 -0.278 -0.277 -0.276 -0.275 -0.274 -0.273 -0.272 -0.271 -0.270 -0.269 -0.268 -0.267 -0.266 -0.265 -0.264 -0.263 -0.262 -0.261 -0.260 -0.259 -0.258 -0.257 -0.256 -0.255 -0.254 -0.253 -0.252 -0.251 -0.250 -0.249 -0.248 -0.247 -0.246 -0.245 -0.244 -0.243 -0.242 -0.241 -0.240 -0.239 -0.238 -0.237 -0.236 -0.235 -0.234 -0.233 -0.232 -0.231 -0.230 -0.229 -0.228 -0.227 -0.226 -0.225 -0.224 -0.223 -0.222 -0.221 -0.220 -0.219 -0.218 -0.217 -0.216 -0.215 -0.214 -0.213 -0.212 -0.211 -0.210 -0.209 -0.208 -0.207 -0.206 -0.205 -0.204 -0.203 -0.202 -0.201 -0.200 -0.199 -0.198 -0.197 -0.196 -0.195 -0.194 -0.193 -0.192 -0.191 -0.190 -0.189 -0.188 -0.187 -0.186 -0.185 -0.184 -0.183 -0.182 -0.181 -0.180 -0.179 -0.178 -0.177 -0.176 -0.175 -0.174 -0.173 -0.172 -0.171 -0.170 -0.169 -0.168 -0.167 -0.166 -0.165 -0.164 -0.163 -0.162 -0.161 -0.160 -0.159 -0.158 -0.157 -0.156 -0.155 -0.154 -0.153 -0.152 -0.151 -0.150 -0.149 -0.148 -0.147 -0.146 -0.145 -0.144 -0.143 -0.142 -0.141 -0.140 -0.139 -0.138 -0.137 -0.136 -0.135 -0.134 -0.133 -0.132 -0.131 -0.130 -0.129 -0.128 -0.127 -0.126 -0.125 -0.124 -0.123 -0.122 -0.121 -0.120 -0.119 -0.118 -0.117 -0.116 -0.115 -0.114 -0.113 -0.112 -0.111 -0.110 -0.109 -0.108 -0.107 -0.106 -0.105 -0.104 -0.103 -0.102 -0.101 -0.100 -0.5 0.0 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? [0.0001, 0.1] [0.1, 0.9] [0.9, 0.9999] 0 10 20 30 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 9.0 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 12.0 12.1 12.2 12.3 12.4 12.5 12.6 12.7 12.8 12.9 13.0 13.1 13.2 13.3 13.4 13.5 13.6 13.7 13.8 13.9 14.0 14.1 14.2 14.3 14.4 14.5 14.6 14.7 14.8 14.9 15.0 15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 15.9 16.0 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 17.0 17.1 17.2 17.3 17.4 17.5 17.6 17.7 17.8 17.9 18.0 18.1 18.2 18.3 18.4 18.5 18.6 18.7 18.8 18.9 19.0 19.1 19.2 19.3 19.4 19.5 19.6 19.7 19.8 19.9 20.0 20.1 20.2 20.3 20.4 20.5 20.6 20.7 20.8 20.9 21.0 21.1 21.2 21.3 21.4 21.5 21.6 21.7 21.8 21.9 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 23.0 23.1 23.2 23.3 23.4 23.5 23.6 23.7 23.8 23.9 24.0 24.1 24.2 24.3 24.4 24.5 24.6 24.7 24.8 24.9 25.0 25.1 25.2 25.3 25.4 25.5 25.6 25.7 25.8 25.9 26.0 26.1 26.2 26.3 26.4 26.5 26.6 26.7 26.8 26.9 27.0 27.1 27.2 27.3 27.4 27.5 27.6 27.7 27.8 27.9 28.0 28.1 28.2 28.3 28.4 28.5 28.6 28.7 28.8 28.9 29.0 29.1 29.2 29.3 29.4 29.5 29.6 29.7 29.8 29.9 30.0 0 30 group=:Dist -0.4 -0.3 -0.2 -0.1 0.0 -0.40 -0.38 -0.36 -0.34 -0.32 -0.30 -0.28 -0.26 -0.24 -0.22 -0.20 -0.18 -0.16 -0.14 -0.12 -0.10 -0.08 -0.06 -0.04 -0.02 0.00 -0.400 -0.398 -0.396 -0.394 -0.392 -0.390 -0.388 -0.386 -0.384 -0.382 -0.380 -0.378 -0.376 -0.374 -0.372 -0.370 -0.368 -0.366 -0.364 -0.362 -0.360 -0.358 -0.356 -0.354 -0.352 -0.350 -0.348 -0.346 -0.344 -0.342 -0.340 -0.338 -0.336 -0.334 -0.332 -0.330 -0.328 -0.326 -0.324 -0.322 -0.320 -0.318 -0.316 -0.314 -0.312 -0.310 -0.308 -0.306 -0.304 -0.302 -0.300 -0.298 -0.296 -0.294 -0.292 -0.290 -0.288 -0.286 -0.284 -0.282 -0.280 -0.278 -0.276 -0.274 -0.272 -0.270 -0.268 -0.266 -0.264 -0.262 -0.260 -0.258 -0.256 -0.254 -0.252 -0.250 -0.248 -0.246 -0.244 -0.242 -0.240 -0.238 -0.236 -0.234 -0.232 -0.230 -0.228 -0.226 -0.224 -0.222 -0.220 -0.218 -0.216 -0.214 -0.212 -0.210 -0.208 -0.206 -0.204 -0.202 -0.200 -0.198 -0.196 -0.194 -0.192 -0.190 -0.188 -0.186 -0.184 -0.182 -0.180 -0.178 -0.176 -0.174 -0.172 -0.170 -0.168 -0.166 -0.164 -0.162 -0.160 -0.158 -0.156 -0.154 -0.152 -0.150 -0.148 -0.146 -0.144 -0.142 -0.140 -0.138 -0.136 -0.134 -0.132 -0.130 -0.128 -0.126 -0.124 -0.122 -0.120 -0.118 -0.116 -0.114 -0.112 -0.110 -0.108 -0.106 -0.104 -0.102 -0.100 -0.098 -0.096 -0.094 -0.092 -0.090 -0.088 -0.086 -0.084 -0.082 -0.080 -0.078 -0.076 -0.074 -0.072 -0.070 -0.068 -0.066 -0.064 -0.062 -0.060 -0.058 -0.056 -0.054 -0.052 -0.050 -0.048 -0.046 -0.044 -0.042 -0.040 -0.038 -0.036 -0.034 -0.032 -0.030 -0.028 -0.026 -0.024 -0.022 -0.020 -0.018 -0.016 -0.014 -0.012 -0.010 -0.008 -0.006 -0.004 -0.002 0.000 -0.5 0.0 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? Prior Posterior 0 10 20 30 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 9.0 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 12.0 12.1 12.2 12.3 12.4 12.5 12.6 12.7 12.8 12.9 13.0 13.1 13.2 13.3 13.4 13.5 13.6 13.7 13.8 13.9 14.0 14.1 14.2 14.3 14.4 14.5 14.6 14.7 14.8 14.9 15.0 15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 15.9 16.0 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 17.0 17.1 17.2 17.3 17.4 17.5 17.6 17.7 17.8 17.9 18.0 18.1 18.2 18.3 18.4 18.5 18.6 18.7 18.8 18.9 19.0 19.1 19.2 19.3 19.4 19.5 19.6 19.7 19.8 19.9 20.0 20.1 20.2 20.3 20.4 20.5 20.6 20.7 20.8 20.9 21.0 21.1 21.2 21.3 21.4 21.5 21.6 21.7 21.8 21.9 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 23.0 23.1 23.2 23.3 23.4 23.5 23.6 23.7 23.8 23.9 24.0 24.1 24.2 24.3 24.4 24.5 24.6 24.7 24.8 24.9 25.0 25.1 25.2 25.3 25.4 25.5 25.6 25.7 25.8 25.9 26.0 26.1 26.2 26.3 26.4 26.5 26.6 26.7 26.8 26.9 27.0 27.1 27.2 27.3 27.4 27.5 27.6 27.7 27.8 27.9 28.0 28.1 28.2 28.3 28.4 28.5 28.6 28.7 28.8 28.9 29.0 29.1 29.2 29.3 29.4 29.5 29.6 29.7 29.8 29.9 30.0 0 30 color=:Dist -0.4 -0.3 -0.2 -0.1 -0.40 -0.38 -0.36 -0.34 -0.32 -0.30 -0.28 -0.26 -0.24 -0.22 -0.20 -0.18 -0.16 -0.14 -0.12 -0.10 -0.08 -0.06 -0.04 -0.02 0.00 -0.401 -0.400 -0.399 -0.398 -0.397 -0.396 -0.395 -0.394 -0.393 -0.392 -0.391 -0.390 -0.389 -0.388 -0.387 -0.386 -0.385 -0.384 -0.383 -0.382 -0.381 -0.380 -0.379 -0.378 -0.377 -0.376 -0.375 -0.374 -0.373 -0.372 -0.371 -0.370 -0.369 -0.368 -0.367 -0.366 -0.365 -0.364 -0.363 -0.362 -0.361 -0.360 -0.359 -0.358 -0.357 -0.356 -0.355 -0.354 -0.353 -0.352 -0.351 -0.350 -0.349 -0.348 -0.347 -0.346 -0.345 -0.344 -0.343 -0.342 -0.341 -0.340 -0.339 -0.338 -0.337 -0.336 -0.335 -0.334 -0.333 -0.332 -0.331 -0.330 -0.329 -0.328 -0.327 -0.326 -0.325 -0.324 -0.323 -0.322 -0.321 -0.320 -0.319 -0.318 -0.317 -0.316 -0.315 -0.314 -0.313 -0.312 -0.311 -0.310 -0.309 -0.308 -0.307 -0.306 -0.305 -0.304 -0.303 -0.302 -0.301 -0.300 -0.299 -0.298 -0.297 -0.296 -0.295 -0.294 -0.293 -0.292 -0.291 -0.290 -0.289 -0.288 -0.287 -0.286 -0.285 -0.284 -0.283 -0.282 -0.281 -0.280 -0.279 -0.278 -0.277 -0.276 -0.275 -0.274 -0.273 -0.272 -0.271 -0.270 -0.269 -0.268 -0.267 -0.266 -0.265 -0.264 -0.263 -0.262 -0.261 -0.260 -0.259 -0.258 -0.257 -0.256 -0.255 -0.254 -0.253 -0.252 -0.251 -0.250 -0.249 -0.248 -0.247 -0.246 -0.245 -0.244 -0.243 -0.242 -0.241 -0.240 -0.239 -0.238 -0.237 -0.236 -0.235 -0.234 -0.233 -0.232 -0.231 -0.230 -0.229 -0.228 -0.227 -0.226 -0.225 -0.224 -0.223 -0.222 -0.221 -0.220 -0.219 -0.218 -0.217 -0.216 -0.215 -0.214 -0.213 -0.212 -0.211 -0.210 -0.209 -0.208 -0.207 -0.206 -0.205 -0.204 -0.203 -0.202 -0.201 -0.200 -0.199 -0.198 -0.197 -0.196 -0.195 -0.194 -0.193 -0.192 -0.191 -0.190 -0.189 -0.188 -0.187 -0.186 -0.185 -0.184 -0.183 -0.182 -0.181 -0.180 -0.179 -0.178 -0.177 -0.176 -0.175 -0.174 -0.173 -0.172 -0.171 -0.170 -0.169 -0.168 -0.167 -0.166 -0.165 -0.164 -0.163 -0.162 -0.161 -0.160 -0.159 -0.158 -0.157 -0.156 -0.155 -0.154 -0.153 -0.152 -0.151 -0.150 -0.149 -0.148 -0.147 -0.146 -0.145 -0.144 -0.143 -0.142 -0.141 -0.140 -0.139 -0.138 -0.137 -0.136 -0.135 -0.134 -0.133 -0.132 -0.131 -0.130 -0.129 -0.128 -0.127 -0.126 -0.125 -0.124 -0.123 -0.122 -0.121 -0.120 -0.119 -0.118 -0.117 -0.116 -0.115 -0.114 -0.113 -0.112 -0.111 -0.110 -0.109 -0.108 -0.107 -0.106 -0.105 -0.104 -0.103 -0.102 -0.101 -0.100 -0.5 0.0 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? Prior Posterior 0 10 20 30 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 5.0 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 9.0 9.1 9.2 9.3 9.4 9.5 9.6 9.7 9.8 9.9 10.0 10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 11.0 11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 12.0 12.1 12.2 12.3 12.4 12.5 12.6 12.7 12.8 12.9 13.0 13.1 13.2 13.3 13.4 13.5 13.6 13.7 13.8 13.9 14.0 14.1 14.2 14.3 14.4 14.5 14.6 14.7 14.8 14.9 15.0 15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 15.9 16.0 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 17.0 17.1 17.2 17.3 17.4 17.5 17.6 17.7 17.8 17.9 18.0 18.1 18.2 18.3 18.4 18.5 18.6 18.7 18.8 18.9 19.0 19.1 19.2 19.3 19.4 19.5 19.6 19.7 19.8 19.9 20.0 20.1 20.2 20.3 20.4 20.5 20.6 20.7 20.8 20.9 21.0 21.1 21.2 21.3 21.4 21.5 21.6 21.7 21.8 21.9 22.0 22.1 22.2 22.3 22.4 22.5 22.6 22.7 22.8 22.9 23.0 23.1 23.2 23.3 23.4 23.5 23.6 23.7 23.8 23.9 24.0 24.1 24.2 24.3 24.4 24.5 24.6 24.7 24.8 24.9 25.0 25.1 25.2 25.3 25.4 25.5 25.6 25.7 25.8 25.9 26.0 26.1 26.2 26.3 26.4 26.5 26.6 26.7 26.8 26.9 27.0 27.1 27.2 27.3 27.4 27.5 27.6 27.7 27.8 27.9 28.0 28.1 28.2 28.3 28.4 28.5 28.6 28.7 28.8 28.9 29.0 29.1 29.2 29.3 29.4 29.5 29.6 29.7 29.8 29.9 30.0 0 30 Density color=:Dist

Stat.x_jitter, Stat.y_jitter

using Gadfly, Distributions, Random
set_default_plot_size(14cm, 8cm)
Random.seed!(1234)
plot(x=rand(1:4, 500), y=rand(500), Stat.x_jitter(range=0.5), Geom.point)
x 0 1 2 3 4 5 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 4.0 4.2 4.4 4.6 4.8 5.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.16 0.18 0.20 0.22 0.24 0.26 0.28 0.30 0.32 0.34 0.36 0.38 0.40 0.42 0.44 0.46 0.48 0.50 0.52 0.54 0.56 0.58 0.60 0.62 0.64 0.66 0.68 0.70 0.72 0.74 0.76 0.78 0.80 0.82 0.84 0.86 0.88 0.90 0.92 0.94 0.96 0.98 1.00 1.02 1.04 1.06 1.08 1.10 1.12 1.14 1.16 1.18 1.20 1.22 1.24 1.26 1.28 1.30 1.32 1.34 1.36 1.38 1.40 1.42 1.44 1.46 1.48 1.50 1.52 1.54 1.56 1.58 1.60 1.62 1.64 1.66 1.68 1.70 1.72 1.74 1.76 1.78 1.80 1.82 1.84 1.86 1.88 1.90 1.92 1.94 1.96 1.98 2.00 2.02 2.04 2.06 2.08 2.10 2.12 2.14 2.16 2.18 2.20 2.22 2.24 2.26 2.28 2.30 2.32 2.34 2.36 2.38 2.40 2.42 2.44 2.46 2.48 2.50 2.52 2.54 2.56 2.58 2.60 2.62 2.64 2.66 2.68 2.70 2.72 2.74 2.76 2.78 2.80 2.82 2.84 2.86 2.88 2.90 2.92 2.94 2.96 2.98 3.00 3.02 3.04 3.06 3.08 3.10 3.12 3.14 3.16 3.18 3.20 3.22 3.24 3.26 3.28 3.30 3.32 3.34 3.36 3.38 3.40 3.42 3.44 3.46 3.48 3.50 3.52 3.54 3.56 3.58 3.60 3.62 3.64 3.66 3.68 3.70 3.72 3.74 3.76 3.78 3.80 3.82 3.84 3.86 3.88 3.90 3.92 3.94 3.96 3.98 4.00 4.02 4.04 4.06 4.08 4.10 4.12 4.14 4.16 4.18 4.20 4.22 4.24 4.26 4.28 4.30 4.32 4.34 4.36 4.38 4.40 4.42 4.44 4.46 4.48 4.50 4.52 4.54 4.56 4.58 4.60 4.62 4.64 4.66 4.68 4.70 4.72 4.74 4.76 4.78 4.80 4.82 4.84 4.86 4.88 4.90 4.92 4.94 4.96 4.98 5.00 0 5 2.8712597494860850.8688707602114859 3.90884067575680570.7844962241285454 4.2014967064336270.4933114676059782 2.8761044222740660.20022370872836803 2.92891828508707340.20968130045034283 2.78390869002773520.38636188269952176 4.1540847037771450.20347016439928334 2.06530122447205060.36346714080005693 3.9750557120175140.9006551405197767 4.2069651933828380.5601212750115374 4.1590095831739340.41599712143214107 2.81509726300803550.06337029084489987 2.2191516662950040.25571730367793133 1.89561480552621390.8394899341730585 2.89572224818001980.4722104397712146 3.1619889707102110.8994205095858897 2.02793302385898460.7098322716968657 2.243811014935740.7032030724629521 2.0287919878980740.8587698550547092 4.055445782623950.8147518729572419 2.0208082508583720.17645290580491135 1.9879890479051410.5218498496945619 0.92389981202464520.397287897949688 1.98544329088483670.08241379533623139 2.1778156681076440.22152131696852717 3.2132729454540690.2434992488546217 1.8649664072617470.30065587786042136 4.1683785836592610.489277411012798 1.88764125329319230.06178649155507521 2.17026487372069270.8817395195040358 3.92780526883187870.23362897774250269 0.87650630409778250.8255340069167519 4.0432409163642910.9105974192931239 4.2452746207158590.5991438659250566 4.1033452351789710.1412748986274308 3.8062302679794830.7366810973361577 1.24196582016799750.43709223813367404 1.98160899261812860.6854790284282768 0.99671323218591520.9911127611685743 1.9074460439983090.6534693194895459 4.0600616252240170.6808836785816833 3.9697029433718960.19952370079780724 0.89088942250721110.4324597305101038 4.010239234022630.3705886993148091 4.1274456192291350.8513118835602637 2.86943155365610950.06533462152067271 1.80970218924360050.7622851899438685 1.85733649626418760.9305245964744348 1.92345128181091420.04526321728496874 4.0450377724757770.2540701150733844 3.9834566375209430.9389170955706365 2.75509057464444450.5744689301853781 1.12177867649153540.6401419378013135 2.04193069906356730.05136288720653859 0.85027402562036150.1115511154107186 2.87134088666257540.7654791906083002 3.78273713325283630.7569242593203886 3.0097053698180690.10043917697495508 2.9565868376540050.9180092814287552 1.9675850238235890.4519085995436555 2.09102600347075860.4966565997490733 3.9307148236662650.8496701726979725 3.88371962759620940.2797556635344246 3.16148151157757740.9031209367973443 1.20282767950029370.8337379298530495 3.8384762610623510.9202623263285435 4.1677016255738740.14752969866227228 3.99624935611840070.6203029982311218 1.752903313769290.6412455362756176 1.91263109801300860.8633707470087496 0.76611426760085030.5513297262619098 1.84703325897522050.7213181391973645 1.7989699747854320.5565117796386155 2.011312561262340.562391983355749 3.84753065878414050.8332854442345888 2.91438850069447140.683847959065649 1.93870405601566050.40434526102519175 2.8810009279871550.30621765112578814 4.22655434374681250.3822671853075492 2.1848433077145990.47861038568821057 4.2315706852444230.3913377406425659 1.82208498084682270.8528930050931623 0.86899031204470820.1910058465303195 0.95942749481530730.9319449966435072 2.84428701791341250.7301492979311955 1.75462250809559480.1716937223218291 1.76502516534107310.10540966113139583 1.800186637053180.14221287858362786 3.8071183858186140.5799623818434465 3.87923523330139370.8582735063047109 0.97241595342174250.9737954714715884 1.1017946678675860.04883640354012009 1.19713854311161620.9025551644489788 3.218302950602240.27986574868940217 2.78546548448190650.642259389228578 1.13450336129567340.7140000771545962 3.84680916021972760.5514339758243468 1.95121809777027620.41002221928315785 0.82290465864745440.4791719547087512 3.1006933357493220.6068327793530726 0.86969428029971290.8284301938432143 1.19922188161121350.06532217208669655 2.22736240427727860.9842933037760484 1.93162081377750280.7455808217291413 1.03415233755323980.6831405194880031 3.0269582457217740.9193478032857196 2.13943155066927960.05251671833846783 1.1316937106082710.30417155724859757 1.21865539842861730.7649296155316312 3.8870914479729310.54298931744888 3.0889825290383950.4698473493890444 3.0794431255458820.9624535633440595 0.79256522507845820.05938962971774009 4.09311226600018950.2892787961097918 3.1886865362168980.5824468146224191 2.96152542022626040.4339580706911712 2.1122555090557410.23829837438298052 1.99320088674342570.6802437761705059 2.0239655411868220.9758045059138829 1.77044912552940280.07026486226463047 1.87400100539144780.631724907029242 2.0199155646577680.11294303759673174 3.82079098584652770.6662179679029121 2.15462638955604020.1354497892449471 3.91114083630068080.37368905687339526 3.8720887497329750.6845749899644828 3.17442489271927550.13480216534545464 0.97250252264953090.26406861992335895 3.1008535597066160.8927396362839568 1.80059745657557620.03171441883005599 3.0028938815546660.849443710514651 1.88423177371639120.40853753061840636 1.02637636823164470.28294823714123485 2.0456276117348970.8231516374761443 1.9741197444118650.9560767968343468 1.13255056395567970.04661289240658861 3.96006212249316470.8668717472509425 1.02712689926106910.7144283934013788 0.98883464374242860.8400089067709939 1.2429428775124390.27494095179421774 0.85721121174327640.14283994035433067 3.9925418747703830.06193096369350859 2.9458808949474390.5543013918697022 2.8835642123430240.36781387880660465 0.97029987680635120.9409660265169163 2.12970652340058160.24735507677280189 4.1054537620315130.27286009818548573 3.1130142760270520.5130113748104197 2.87077110906373620.810095349938354 2.161179913117280.039244941424736335 2.07968833532424920.24890378913702726 2.7696471418158620.1751722300394265 1.804715297518420.0005917711362134481 4.1824049141869590.3719608058921303 4.072811924714030.058608492349195074 2.799770521768430.12011628613261238 1.76617074870835690.28143985356705925 2.24764273225316740.6202785432039485 2.2122079485985620.8700357516595604 3.91652606674083170.019972582532043703 0.93630187081043680.987908302749377 1.16122887372639070.7552467868535593 0.81701607493336560.5140433713604216 1.14901522248591470.7021756418052602 4.1909122118898990.18019934546680438 2.8464596710996580.46430881182502726 4.0631968498540790.27596643355398653 2.05868538795040120.031779235808084394 2.081024673632640.5029323603596401 2.0999857224716020.1322055312857282 0.8552997943745170.22624225698362654 2.03311159069952250.9901222460263335 1.86721261243744860.7018230289433646 2.93402131313415550.5483182356088243 2.07903629687126120.6851882186499314 2.083621290435720.25554705343485484 3.9796375197535250.8040460964694363 0.89539294224921820.23172871039837373 1.75199354453743350.39033820071475933 1.03444993669967490.04935999784699163 2.05322203265875560.5270047985994559 1.97819736502428340.12633860607778602 1.13669672982365680.6859244357507125 3.9458543430417380.9347001577624441 3.1388120129138190.6289955692908717 2.0454204894301640.4156080283059055 2.0053109149752350.4824761299463617 4.1426164442304880.7527410357550373 3.11457706661103150.1364677260308763 3.94017389289840820.5243925284587394 0.89288618288190950.8887742373097278 4.121528193386090.5973158992545364 0.86072132136157380.185888775682863 2.1639561594030930.08119296696646194 3.8314324897182210.8543586741980717 3.9718487515771610.43967094523384076 4.2118995781614010.857783472261158 4.2167424957096340.7620738638659255 2.1482293600074480.297193812375811 0.76643541622001920.6964472695956948 1.20245470901159470.8444267400793738 0.9569839052291050.1825057607253029 2.93062612877669970.5650379859078629 2.98379658262446770.6890488323646001 1.20847000285129710.7444158227835773 3.08724331754477980.9070250703704628 3.19818970901706660.7251897791927844 4.1087312021257710.9582538153032606 4.0117027638056480.7372812787327768 0.95387834184928060.15461746682785849 0.92177887686691240.6128807362063043 0.97074541895466850.260988098859801 4.21224227345058560.36597531632541225 2.89053643566361630.27638995986758275 1.06966771210481460.02853550112696346 3.97829491712853760.26623330759253705 2.9343597791690650.8822263611775025 1.0082259940667550.7797272162266058 1.24202612733899450.6723370448480452 4.0667298061719250.7189174328788034 1.09679460442816910.9104012565181274 2.2438175681615960.22814256947908007 4.0975178179132080.2926767210770894 1.80398564941876140.5335158113802787 3.91228646284267970.5224652349864496 0.85248094165445070.1854992374002269 1.92468672450880350.4313936472999286 3.9963221729939510.23163315976888965 0.98227644653067250.008941785599641316 1.01861978680671220.8801608411211824 0.90583025207289420.9495904988651728 3.12259010944273150.7251610128749185 0.76079710981379060.7653749686121726 2.04123089316883230.3889837880913415 3.9659071571322830.33454205519933766 1.17208693899642480.5409635231684314 1.23557494130732740.5417859419322087 1.76399132393748430.6995561236538012 2.0933754508327590.9768058652920141 3.07325747479750080.07157621671962944 1.17128656677569330.21095849801002242 1.79129309903202530.24484660314257278 1.09647728717019820.26819716438786256 3.04203340907237860.7607715755994937 1.0340684248389440.8443210731301258 3.82317726781159270.31529067609398276 2.86193123065980660.6484925911208542 3.24706716889914840.3685559216792129 0.94654552932500910.6205061868459367 3.92781475263438340.9523401569298326 2.06931864543716730.5187125306836177 4.2006977907464450.5916756129971316 3.17164003488570150.8101677940907962 3.9444791704311640.24882164172116517 1.17115188753051620.3039008559181663 1.11769242098911770.5730465638219848 4.21288391298796850.7172403284161356 0.96605697709104510.14386756622287056 1.93832610798619640.695696967985678 2.76771692359299060.5239610185536518 2.21875647328071770.5214146727674995 1.81757341803903080.19316006943534714 3.80452405450155150.8443182452610154 0.77215648756982250.04817127912951269 1.03634253106889070.0015749053225861953 4.1024404353448190.6176051821237512 4.2193731760611370.934486725639464 2.0961057900728310.215287910639833 2.98186568437307950.520000055822197 0.75909106962863750.8925689467243849 2.78964403448908360.27168082454940823 2.9925193197182150.5392913071429981 0.91955592853326070.5535703272043874 2.0704230829243950.66064841597728 2.9166028640134110.3669039349529569 3.8797079924654070.9749001931944528 3.19049261002831530.762504522777882 2.11090097913095050.520930941494485 0.97094766332092910.16272321889578512 2.20420085162979660.9537990881567351 1.19274320690306410.8363896294256541 3.21166583451170240.8682005168268859 3.06925487175301060.547207184165385 4.1077255897820470.925886679280969 2.75901256220109040.901074525624822 1.88451076785885550.3117414903705903 1.81134539331395740.6642422457423811 2.97776347688545240.5810909916932919 3.0643465224393010.8537548518511688 3.03469608703741270.46039783867502093 3.12057034794669260.9929498020696101 2.83617722602818740.6113158849330347 0.89789039109250890.58230855642697 3.0358075963978180.5296498813973983 1.0230433550643360.7490827228368587 2.0793864025271120.7000017994857771 3.11782310996961340.9036221496963194 1.00346683089635040.942588189733702 4.21516219142494550.9755806406492921 1.79223188928033820.7333388252259753 3.7577401019838910.5845543847866221 0.78615954455866980.7656854824149089 3.185063129435120.05537909946775932 2.75367379137047850.050307398032391704 2.83001953374771140.5148028287268799 4.127429892159790.7353569902097455 2.0620754209140630.6430375271161651 2.99506679619945440.36263693424831744 3.2071112073218610.05221968494849505 3.83247985161245230.33102535353292806 3.98197962066977860.1880083620572911 3.95644831148749930.5338124396263914 3.00149126495921740.5107420498787975 0.89089098010358680.7214471968410925 3.0644364214865650.255432407815942 1.978581400534030.3851255814540926 2.8622185278532910.8238123963398689 3.7770851181711870.7568890891259715 3.78358957965905240.41316557081364846 0.88276980287178860.20650303966258898 0.90740469371833190.8630007726329422 4.1121116870443220.5221762619529627 4.037552151920550.4159443871114292 2.15685602864908080.8501629612033895 4.0238882527834560.9489644615452483 1.00909329338628530.7897967712831379 0.82056082356963720.15379168745555616 2.99318573005473270.34543579552523984 0.83731494901795480.810119349113559 1.84989377086615560.11186312639075491 0.79864348884765690.5875124896588076 2.00412772168445260.6915070909179323 4.2240556446637120.3442663724650188 1.94990330497589270.8700132097492914 2.98745768026352380.808205815541499 3.0659273314892150.49160442382388414 2.88161578931266060.7328057998191583 2.85781001925149350.39938314903843464 0.77845165565383870.5354504488438098 3.24305523203814650.7393556116748278 4.0132703215497040.569011203662756 2.81451154671783940.6943160422603702 1.91259592597103010.35371234001492313 4.236040126338210.4155778038296022 4.2180903516420420.24639238863469104 3.8494767270981020.21866035522733784 1.98207116193151480.22728747265084115 2.13486343557437540.6530188065789416 0.91539620965199860.6849995836459672 2.81380110144793470.868808366582287 1.87275826021602220.697590587334583 4.2138464688042910.7869941993723283 3.24640620994204370.054774123323379276 1.1417158714713060.7546292452367565 3.8579210723123250.9936353001610227 3.93680750308554470.9702319861394001 4.14954123756714650.9548157677432825 1.97795669201679520.22546604456210773 2.0214435220706150.4254459101863406 1.97684906401709680.9111169553670773 3.1656118897456920.9445648966931448 0.98560014179000770.2520419991167283 1.8581503312089190.027371015824906864 3.09158798139164140.5501988481362968 4.0714249897892520.9738372307308305 1.1853228318768530.9591222449404715 4.0177444253893890.5671602112321875 2.907921226577160.48083979885980155 3.78660724312447350.8655859590804046 2.9441971701345140.0694571606662242 2.78281911351327740.6225106290225939 4.0697799300605080.9224603480171893 0.78424458078717060.18700487539883281 3.0773952805481220.21179779347166938 3.81500042649377360.4181464403606069 1.0763797882882740.6410620651668127 3.13310109181780.5856064192614485 2.1801914074107460.6745201531817407 3.20844538063262340.0567370392512806 2.89164597619780930.6753571923576499 2.036694315739890.6213908436925064 1.8759478581485820.22244967371095747 1.17689630024929310.2788303260944013 2.0901809630542290.23849788896293656 3.9534744556255310.3485998582193758 0.88265496789252830.4081267441800527 0.87879147613697080.5137956601251248 1.76583836985110180.14190452523901043 1.0455972671301860.22397456195988152 0.83719037841066110.996398361105594 2.94248134268714170.6580745507087566 4.0993740200823920.5637173765896986 1.08751627654943750.8001726293694157 2.8273041103292850.22387276972538217 2.99644469238850860.8589274960959142 1.18334706007171350.8323075439974053 3.880478699866740.4213947359498552 0.95174921781454340.8943592085408273 1.768249847565630.2266030921252029 2.0130091448939480.9741350476128602 3.9611883878472990.9921221717678421 1.78031137382426570.046836121816080545 2.08816596636458840.8212524740973319 3.17576282336098670.16362626503840627 2.2101402110154270.6902175471429484 1.2167735579748530.9390194666329318 4.0776549548980060.4909484824553295 2.13975706338253820.23655990729592613 2.09000575148672540.9231320499817033 3.1271542152184260.02212647541005819 1.98904534324881090.6070347210179184 3.8891551681173930.8054327605911276 2.82850618046347830.18267524521417788 3.78981971692565440.9942034287494077 1.16508759263563230.24794439300388094 1.89114917242930480.08784030377787089 4.0119238209425710.3827076222337582 3.7846729737133730.6401196266200835 4.1469300773784880.8594724440490045 1.80122419007952630.5743640780190793 0.79612028878587190.32550073923233824 3.7922842447558920.7818997197110137 2.1080403028134810.8281410033845884 3.06432819558836740.5045840112038369 4.0741711053431280.13916898846300385 1.96706391823923750.6528341367744794 0.88824937639516280.7146547486252668 3.76167195573254260.17834114894143083 3.19693955885152370.4459487663557117 0.78777852306703240.6882837111259372 3.22083221720861030.8023030112033331 1.05251996604918950.7821683036122776 0.78872244404170640.19568628922501163 2.96247686324456750.4358523793378436 2.04648741188338330.39198250169152393 3.11352777892138780.11360168459951026 2.10617558391210350.6642693805375591 0.91046736171434830.7557964922352066 2.7811987724154890.4644179392864445 2.03323890094838640.29075009103566896 0.76510891886003530.5565507355980254 2.9506657296631190.5872286665992463 3.0401844067709420.5760144499368227 4.16017618689966450.01563354657629501 1.8072683061510770.3312879052202624 4.2437632853301050.47239864678245225 3.9422873088232830.19619997571870074 2.90447547726741550.7483008772508714 3.88265311681619350.5023248535269951 2.0288605263728510.5264454911641667 2.9681270829736280.4107050281769109 3.8974711942350670.016168511270878594 4.0084261480817660.6891135870767084 0.90450094952487890.0028255728554108517 1.8972177196856280.821332885539736 3.0367212847756010.11271201175193979 1.94507484923431370.656538478901774 4.173043896589570.32526231681412365 2.2042488393354240.7992005896085951 4.2385214993286190.7647862761585806 1.15938391441513120.28313567425363695 3.0124899151026550.9837609431339588 0.94181147122043330.41226837667238525 2.7900503636512730.1738942370659159 3.2013887172819120.37372897688415463 3.07544044837156250.7911133365397495 3.7830837430045170.11713401014978575 1.12011311546150470.8916346864313749 2.0615076910923150.8244669978901201 3.19647910784920.4556905467926975 4.008710958077660.21992588087221654 3.19358102616396480.4762031536881922 3.2379747071246630.41012883792543287 1.24456439524632810.68072808956177 1.06279190041377820.9353666109683862 2.7844680204922230.9514084295478217 1.87643483856390430.880014210783719 2.83694780830631550.31322089348156024 2.0508421975189140.5769600659422053 0.82807355963134750.65590767426589 2.9623430351579350.06988563382132096 4.135029277997570.9470913943908873 2.78452415083122330.9193811550535141 3.89938963350588660.7318217460210769 2.90214901882118160.7594122645654858 2.03768799389502760.4704100989700123 1.06351530601658380.41601923074567215 0.98042140393878390.9764740463236247 3.0405154475217460.7713190608139815 2.7555314816374920.2989313514289098 3.103359404466510.3769511221635041 1.9291799198070140.7308833379516695 4.02749127253830250.12613981259427376 4.2156027473921070.6002177892737408 2.0215548193360940.6842244340377102 1.84040783350168930.23416319027706767 4.0780612824722620.668930559288584 0.89242683342386380.3970132824366758 2.96364594990007070.33380255641211753 2.01098082754497740.6182689195139303 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 0.0 0.5 1.0 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 0.000 0.005 0.010 0.015 0.020 0.025 0.030 0.035 0.040 0.045 0.050 0.055 0.060 0.065 0.070 0.075 0.080 0.085 0.090 0.095 0.100 0.105 0.110 0.115 0.120 0.125 0.130 0.135 0.140 0.145 0.150 0.155 0.160 0.165 0.170 0.175 0.180 0.185 0.190 0.195 0.200 0.205 0.210 0.215 0.220 0.225 0.230 0.235 0.240 0.245 0.250 0.255 0.260 0.265 0.270 0.275 0.280 0.285 0.290 0.295 0.300 0.305 0.310 0.315 0.320 0.325 0.330 0.335 0.340 0.345 0.350 0.355 0.360 0.365 0.370 0.375 0.380 0.385 0.390 0.395 0.400 0.405 0.410 0.415 0.420 0.425 0.430 0.435 0.440 0.445 0.450 0.455 0.460 0.465 0.470 0.475 0.480 0.485 0.490 0.495 0.500 0.505 0.510 0.515 0.520 0.525 0.530 0.535 0.540 0.545 0.550 0.555 0.560 0.565 0.570 0.575 0.580 0.585 0.590 0.595 0.600 0.605 0.610 0.615 0.620 0.625 0.630 0.635 0.640 0.645 0.650 0.655 0.660 0.665 0.670 0.675 0.680 0.685 0.690 0.695 0.700 0.705 0.710 0.715 0.720 0.725 0.730 0.735 0.740 0.745 0.750 0.755 0.760 0.765 0.770 0.775 0.780 0.785 0.790 0.795 0.800 0.805 0.810 0.815 0.820 0.825 0.830 0.835 0.840 0.845 0.850 0.855 0.860 0.865 0.870 0.875 0.880 0.885 0.890 0.895 0.900 0.905 0.910 0.915 0.920 0.925 0.930 0.935 0.940 0.945 0.950 0.955 0.960 0.965 0.970 0.975 0.980 0.985 0.990 0.995 1.000 0 1 y

Stat.xticks, Stat.yticks

using Gadfly, Random
set_default_plot_size(14cm, 8cm)
Random.seed!(1234)
plot(x=rand(10), y=rand(10), Stat.xticks(ticks=[0.0, 0.1, 0.9, 1.0]), Geom.point)
x 0.0 0.1 0.9 1.0 0.94645322623138340.0027764596470082337 0.131025656220859040.7285427707652774 0.9671427689153830.40573030892222206 0.83962193405807110.012846056572255682 0.63956159968027340.5239478383832243 0.5203549937237180.8406409194782338 0.0149088492850999450.5257956638691226 0.97213608245546870.08344008943212289 0.41129411794985050.5525344667850608 0.57986212013413240.749719144596962 h,j,k,l,arrows,drag to pan i,o,+,-,scroll,shift-drag to zoom r,dbl-click to reset c for coordinates ? for help ? 0.0 0.5 1.0 0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90 0.95 1.00 0.000 0.005 0.010 0.015 0.020 0.025 0.030 0.035 0.040 0.045 0.050 0.055 0.060 0.065 0.070 0.075 0.080 0.085 0.090 0.095 0.100 0.105 0.110 0.115 0.120 0.125 0.130 0.135 0.140 0.145 0.150 0.155 0.160 0.165 0.170 0.175 0.180 0.185 0.190 0.195 0.200 0.205 0.210 0.215 0.220 0.225 0.230 0.235 0.240 0.245 0.250 0.255 0.260 0.265 0.270 0.275 0.280 0.285 0.290 0.295 0.300 0.305 0.310 0.315 0.320 0.325 0.330 0.335 0.340 0.345 0.350 0.355 0.360 0.365 0.370 0.375 0.380 0.385 0.390 0.395 0.400 0.405 0.410 0.415 0.420 0.425 0.430 0.435 0.440 0.445 0.450 0.455 0.460 0.465 0.470 0.475 0.480 0.485 0.490 0.495 0.500 0.505 0.510 0.515 0.520 0.525 0.530 0.535 0.540 0.545 0.550 0.555 0.560 0.565 0.570 0.575 0.580 0.585 0.590 0.595 0.600 0.605 0.610 0.615 0.620 0.625 0.630 0.635 0.640 0.645 0.650 0.655 0.660 0.665 0.670 0.675 0.680 0.685 0.690 0.695 0.700 0.705 0.710 0.715 0.720 0.725 0.730 0.735 0.740 0.745 0.750 0.755 0.760 0.765 0.770 0.775 0.780 0.785 0.790 0.795 0.800 0.805 0.810 0.815 0.820 0.825 0.830 0.835 0.840 0.845 0.850 0.855 0.860 0.865 0.870 0.875 0.880 0.885 0.890 0.895 0.900 0.905 0.910 0.915 0.920 0.925 0.930 0.935 0.940 0.945 0.950 0.955 0.960 0.965 0.970 0.975 0.980 0.985 0.990 0.995 1.000 0 1 y