sxu341 ggplot为例 library(ggplot2) qplot(Sepal.Length, Sepal.Width, data = iris, color=Species,facets = Species ~ .)