小编tlu*_*luh的帖子

ggplot2中的geoms和stats有什么区别?

既geoms和统计信息可用于使曲线在R包GGPLOT2,并且它们常常给出相似的结果(例如,geom_area和stat_bin).它们通常也有不同的参数,例如在二维密度图中:

geom_density_2d(mapping = NULL, data = NULL, stat = "density2d",
  position = "identity", ..., lineend = "butt", linejoin = "round",
  linemitre = 1, na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)

stat_density_2d(mapping = NULL, data = NULL, geom = "density_2d",
  position = "identity", ..., contour = TRUE, n = 100, h = NULL, na.rm =
  FALSE, show.legend = NA, inherit.aes = TRUE)
Run Code Online (Sandbox Code Playgroud)

两种类型的物体之间是否存在根本差异?

plot r ggplot2

12
推荐指数
2
解决办法
6556
查看次数

标签 统计

ggplot2 ×1

plot ×1

r ×1