|
stars函数画星状图比较简单,网上也有例子:
stars(class1,draw.segments=TRUE,col.segments=c("yellow","lightgray","blue","green","red"))
也有symbols画圆的:
symbols(x,y,circle = r,
bg=rainbow(10))
但是怎么用symbols函数画星状图呢?
symbols帮助文档为:symbols(x, y = NULL, circles, squares, rectangles, stars,
thermometers, boxplots, inches = TRUE, add = FALSE, fg = par("col"), bg = NA, xlab = NULL, ylab = NULL, main = NULL, xlim = NULL, ylim = NULL, ...) |
-
星状图
|