powered by
Function to identify the available plot types of an object.
plotTypes( obj, output = c("numeric", "caption", "numcap", "capnum"), numberInCaptionEnabled = FALSE )getAvailablePlotTypes( obj, output = c("numeric", "caption", "numcap", "capnum"), numberInCaptionEnabled = FALSE )
getAvailablePlotTypes( obj, output = c("numeric", "caption", "numcap", "capnum"), numberInCaptionEnabled = FALSE )
Returns a list if option is either capnum or numcap
option
capnum
numcap
or returns a vector that is of character type for option=caption or of numeric type for option=numeric.
option=caption
option=numeric
The object for which the plot types shall be identified, e.g. produced by getDesignGroupSequential() or getSampleSizeMeans().
getDesignGroupSequential()
getSampleSizeMeans()
The output type. Can be one of c("numeric", "caption", "numcap", "capnum").
c("numeric", "caption", "numcap", "capnum")
If TRUE, the number will be added to the caption, default is FALSE.
TRUE
FALSE
plotTypes and getAvailablePlotTypes() are equivalent, i.e., plotTypes is a short form of getAvailablePlotTypes().
plotTypes
getAvailablePlotTypes()
output:
output
numeric: numeric output
numeric
caption: caption as character output
caption
numcap: list with number and caption
capnum: list with caption and number
if (FALSE) { design <- getDesignInverseNormal(kMax = 2) getAvailablePlotTypes(design, "numeric") plotTypes(design, "caption") getAvailablePlotTypes(design, "numcap") plotTypes(design, "capnum") }
Run the code above in your browser using DataLab