inst/examples/lattice-iris-hist.R

# 三种鸢尾花各自的花萼长度直方图
library(lattice)
print(
  histogram(~ Sepal.Length | Species, layout = c(3, 1), data = iris,
            xlab = "花萼长度", ylab = "百分数")
)

Try the MSG package in your browser

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

MSG documentation built on July 22, 2021, 1:06 a.m.