Function to identify the available plot types of an object.
Arguments
- obj
The object for which the plot types shall be identified, e.g. produced by
getDesignGroupSequential()orgetSampleSizeMeans().- output
The output type. Can be one of
c("numeric", "caption", "numcap", "capnum").- numberInCaptionEnabled
If
TRUE, the number will be added to the caption, default isFALSE.
Value
Returns a list if option is either capnum or numcap
or returns a vector that is of character type for option=caption or
of numeric type for option=numeric.
Details
plotTypes and getAvailablePlotTypes() are equivalent, i.e.,
plotTypes is a short form of getAvailablePlotTypes().
output:
numeric: numeric outputcaption: caption as character outputnumcap: list with number and captioncapnum: list with caption and number
Examples
if (FALSE) { # \dontrun{
design <- getDesignInverseNormal(kMax = 2)
getAvailablePlotTypes(design, "numeric")
plotTypes(design, "caption")
getAvailablePlotTypes(design, "numcap")
plotTypes(design, "capnum")
} # }
