iplot.data {iplots}R Documentation

Retireve data from a plot.

Description

This function retrieves the associated data from the current plot.

Usage

iplot.data(id=NULL)

Arguments

id

number of the variable to retrieve. If omitted a list of all associated varaibles (and their contents) is returned.

Value

A vector representaing a variable or a list of variable contents. The first two vecctors in the list are traditionally named x and y. The number of variables depends on the plot used, e.g. scatter plot has two, histogram or bar chart return one.

See Also

iplot, ihist, ibar

Examples

data(iris)
attach(iris)
iplot(Sepal.Width,Petal.Width)
iplot(Sepal.Width/Sepal.Length, Species)

[Package iplots version 1.1-8 Index]