iplot: Creates an interactive plot

Description Usage Arguments Details Value See Also Examples

Description

iplot method is called for its side-effect of creating an interactive plot. It is the interactive version of the well-known plot method.

Usage

1
2
3
4
iplot(x, ...)
## Default S3 method:
iplot(x, y, xname = deparse(substitute(x)), yname = deparse(substitute(y)),
    ..., window, frame, flags)

Arguments

x

object to plot (in the generic) or the x coordinates for the default xy plot

y

y coordinates of the point to plot

xname

name of the x variable

yname

name of the y variable

...

further optional arguments

window

window in which the plot will be placed. If not spcieified the plot will create a new window and fill it with itself.

frame

optional numeric vector with entries c(x, y, width, height)

flags

optional flags specifying the behavior when the enclosing window is resized

Details

iplot is a generic method which can be implemented for numberous objects.

iplot.default is the default implementation creating a 2d scatterplot.

All plots of the class iPlot support virtual attributes.

Value

Returns an object that is a subclass of iPlot (the actual class will depend on the type of plot created). This object it can be used to modify the parameters of the plot, to iteract with the plot and to add other components to the plot.

See Also

ihist, ibar, ipcp

Examples

1
2
3
4
5
6
7
8
x = rnorm(1000)
y = rnorm(1000)/4 + x
p = iplot(x,y)
p$xlim
p$xlim=c(-3.5,3.5)
m = lm(y ~ x)
l = iabline(m)
l$color = 2

att/iplots documentation built on May 10, 2019, 2:12 p.m.

Related to iplot in att/iplots...