Learn R Programming

condvis (version 0.2-2)

update.xcplot: Update a condition selector plot

Description

Takes an existing object of class 'xcplot' and updates it according to the coordinates of a mouseclick.

Usage

## S3 method for class 'xcplot':
update(object, xclick, yclick, xc.cond = NULL, ...)

Arguments

object
an object of class 'xcplot', as produced by plotxc
xclick
numeric value between 0 and 1, usually captured from mouse
yclick
numeric value between 0 and 1, usually captured from mouse
xc.cond
value to update, for updating without mouseclick info
...
not used

Value

  • The same object of class 'xcplot' with parts updated. A side effect is the updating of the plot relating to the object.

See Also

update.xsplot, plotxc

Examples

Run this code
obj <- plotxc(x = mtcars$mpg, xc.cond = 20)
obj <- update(obj, 0.8, 0.5)

Run the code above in your browser using DataLab