## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
library(vcdinteractive)
has_vcd <- requireNamespace("vcd", quietly = TRUE)

## ----arthritis, eval = has_vcd------------------------------------------------
data(Arthritis, package = "vcd")
ispine(Improved ~ Age, data = Arthritis, main = "Improvement by age", height = 520)

## ----shuttle, eval = has_vcd--------------------------------------------------
data(SpaceShuttle, package = "vcd")
icdplot(Fail ~ Temperature, data = SpaceShuttle, main = "O-ring failure by temperature",
        height = 480)

## ----iris---------------------------------------------------------------------
icdplot(Species ~ Petal.Length, data = iris, main = "Iris species by petal length",
        height = 480)

