inst/Examples/irisBwplot.R

if(!exists("Sepal.length")) {
  data(iris)
  attach(iris)
  }

require(lattice)
trellis.device("pdf", color=FALSE, file = "Examples/irisBwplot.pdf", width = 5,
               height = 4)

u = cut(Petal.Length, breaks = 3)
bwplot( ~ Sepal.Length | u * Species)
dev.off()

Try the SoDA package in your browser

Any scripts or data that you put into this service are public.

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.