ibar: Create an interactive bar chart or spine plot

Description Usage Arguments Value Note See Also Examples

Description

ibar method creates an interactive bar chart

Usage

1
2
3
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

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

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

Related to ibar in att/iplots...