Learn R Programming

textBoxPlacement (version 1.0)

xPosCheck: xPosCheck

Description

is the value of xPos within a valid range?

Usage

xPosCheck(xPos, xList, verbose)

Value

numeric vector valid values of xPos

Arguments

xPos

integer specifying x position to try to place text box

xList

list whose components are numeric vectors of the x values for overlaid curves

verbose

Boolean if TRUE print informative or diagnostic messages to console

Examples

Run this code
# replace incorrect xPos with reasonable value

xPosCheck(c(1,1,-5),xList2,verbose=TRUE)

Run the code above in your browser using DataLab