Methods for Function
points in Package binseqtest
Plot binary sequential boundaries for
"plot"(x, rcol = c(orange = "#E69F00", blue = "#56B4E9", green = "#009E73"), rpch = c(openCircle=1, filledCircle=16, filledDiamond=18), bplottype = "NS", newplot = TRUE, dtext=NULL, grid=50, xlab=NULL, ylab=NULL, ...)"points"(x, ...)
- an object of class
- rejection color vector, rcol=fail to reject, rcol=reject, conclude theta>theta0, rcol=reject, conclude theta< theta0 (see details)
- rejection pch vector, correspond to same categories as rcol vector
- character, either 'NS' (default), 'FS', 'NB', 'NZ', or 'NE' (see details)
- logical, should a new plot be started? if FALSE add to existing plot (only makes sense to add to plot with the same bplottype)
- logical, add descriptive text? if NULL only adds text when newplot=TRUE (used for bplottype='NS' or 'FS')
- numeric, if maximum possible total trials
- title for x axis, if NULL value depends on bplottype
- title for y axis, if NULL value depends on bplottype
- other arguments to the
plotfunction can be passed here.
The default rcol vector are good colors for distinguishing for those with color blindness. Text is printed on the unused portion of the plot, which uses the color names taken from the rcol vector names.
Their are several different types of plots, selected by the
bplottype argument, where the value is a character string with 2 characters, the first representing the
x-axis and the second representing the y-axis. For example
bplottype='NS' denotes N=total number of trials on the horizontal axis, and S=number of successes on the vertical
axis. Other plots are: 'FS'=failure by successes; 'NB'=total by B-values; 'NZ'=total by Z-scores; 'NE'=total by estimates and confidence intervals. The type 'NE' is only defined
if there are only 1 value for each N on the upper and 1 value for each N on the lower part of the boundary. Otherwise, the confidence intervals would overlap and be uninformative.
For 'NE' the end of the boundary is not plotted because of that overlapping.
For some examples, see plot section of the vignette. The method points just calls
b<-designOBF(50,theta0=.5) plot(b,bplottype="NE") plot(b) b2<-designFixed(49,theta0=.5) points(b2,rpch=c(17,17,17))