
This function retrieves the associated data from the current plot.
iplot.data(id=NULL)
number of the variable to retrieve. If omitted a list of all associated varaibles (and their contents) is returned.
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.
# NOT RUN {
data(iris)
attach(iris)
iplot(Sepal.Width,Petal.Width)
iplot(Sepal.Width/Sepal.Length, Species)
# }
Run the code above in your browser using DataLab