# plot-methods

0th

Percentile

##### Methods for Function plot and points in Package binseqtest

Plot binary sequential boundaries for "boundEst" objects.

Keywords
methods
##### Usage
"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, ...)
##### Arguments
x
an object of class "boundEst"
rcol
rejection color vector, rcol[1]=fail to reject, rcol[2]=reject, conclude theta>theta0, rcol[3]=reject, conclude theta< theta0 (see details)
rpch
rejection pch vector, correspond to same categories as rcol vector
bplottype
character, either 'NS' (default), 'FS', 'NB', 'NZ', or 'NE' (see details)
newplot
logical, should a new plot be started? if FALSE add to existing plot (only makes sense to add to plot with the same bplottype)
dtext
logical, add descriptive text? if NULL only adds text when newplot=TRUE (used for bplottype='NS' or 'FS')
grid
numeric, if maximum possible total trials
xlab
title for x axis, if NULL value depends on bplottype
ylab
title for y axis, if NULL value depends on bplottype
...
other arguments to the plot function can be passed here.
##### Details

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 plot(x,newPlot=FALSE,...).

##### Aliases
• plot-methods
• plot,boundEst,ANY-method
• plot,boundEst,missing-method
• points-methods
• points,ANY-method
• points,boundEst-method
##### Examples
b<-designOBF(50,theta0=.5)
plot(b,bplottype="NE")
plot(b)
b2<-designFixed(49,theta0=.5)
points(b2,rpch=c(17,17,17))


Documentation reproduced from package binseqtest, version 1.0.3, License: GPL-3

### Community examples

Looks like there are no examples yet.