ibar {Acinonyx}R Documentation

Create an interactive bar chart or spine plot

Description

ibar method creates an interactive bar chart

Usage

ibar(x, ...)
## S3 method for class 'factor'
ibar(x, xname = deparse(substitute(x)), ..., window, frame, flags)

Arguments

x

factor to plot

xname

name of the x variable

...

further optional arguments

window

window in which the plot will be placed. If not specified 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

Value

Returns an object of class iBarchart (a subclass of iPlot). 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.

Note

It is possible to switch between barchart and spineplot using the S keyboard key or the spines virtual attribute (TRUE for spineplot, FALSE for barchart).

See Also

iplot, ihist, ipcp

Examples

data(mtcars)
attach(mtcars)
iplot(hp, mpg)
b = ibar(factor(cyl))
select(b, carb > 2)
b$spines = TRUE

[Package Acinonyx version 3.0-0 Index]