Macro Library normalcurve
normal curve functions
normalcurve(mu, sigma, a, b, [axislabel, x, dirx, y, diry, color, width, height])
draws a normal curve with mean mu and standard deviation sigma
This function is good for a basic normal curve, vertically scaled to fit
with axis labels at multiples of sigma
draws on bounds a<x<b, with axis markings at mu+k*sigma
axis label gives an axis label
optionally can shade a region based on one or two values x and y
indiciate shade direction using dirx and diry, which can be "left" or "right"
you set use null for y to set later values
color indicates color of the shaded regions
width and height are pixels for the displayed graph. defaults to 400 by 150
normalcurve2(mu, sigma, a, b, [axisspacing, ymax, axislabel, x, dirx, y, diry, color, width, height])
draws a normal curve with mean mu and standard deviation sigma
This function allows for axis spacing other than multiples of sigma, and does
not scale the graph vertically to fit.
draws on bounds a<x<b
specify axisspacing, or defaults to sigma
set ymax to set max of vertical axis, or "auto" for ymax to autoscale
axis label gives an axis label
optionally can shade a region based on one or two values x and y
indiciate shade direction using dirx and diry, which can be "left" or "right"
you set use null for y to set later values
color indicates color of the shaded regions
width and height are pixels for the displayed graph. defaults to 400 by 150
normalcurve3(mu, sigma, a, b, [axislabel, x, dirx, y, diry, color, q, dirw, r, dirr, color, width, height])
draws a normal curve with mean mu and standard deviation sigma
This function is good for a basic normal curve, vertically scaled to fit
with axis labels at multiples of sigma. This versions allows for the shading
of TWO regions with different colors
draws on bounds a<x<b, with axis markings at mu+k*sigma
axis label gives an axis label
optionally can shade a region based on one or two values x and y
indiciate shade direction using dirx and diry, which can be "left" or "right"
optionally can shade a second region based on one or two values q and r
indiciate shade direction using dirq and dirr, which can be "left" or "right"
you set use null for y, q, and/or r to set later values
color indicates color of the shaded regions
width and height are pixels for the displayed graph. defaults to 400 by 150