gpt4 book ai didi

r - ggplot 中特殊变量的文档(..count..、..密度.. 等)

转载 作者:行者123 更新时间:2023-12-02 15:55:57 27 4
gpt4 key购买 nike

ggplot2 中的 stats_ 函数创建特殊变量,例如stat_bin2d 创建一个名为 ..count.. 的特殊变量。在哪里可以找到列出哪个 stat_ 函数返回哪些特殊变量的文档?

我查看了主要的 ggplot2 documentation pages ,以及 R 在线帮助中。我尝试阅读 stat_bin2d 的源代码,但它使用了一些我不理解的语言 - 我不知道如何获取 StatBin2d$new(...) 背后的代码.

最佳答案

其中大多数都记录在帮助页面的值部分中,例如,?stat_boxplot

Value:

 A data frame with additional columns:

width: width of boxplot

ymin: lower whisker = smallest observation greater than or equal to
lower hinge - 1.5 * IQR

lower: lower hinge, 25% quantile

notchlower: lower edge of notch = median - 1.58 * IQR / sqrt(n)

middle: median, 50% quantile

notchupper: upper edge of notch = median + 1.58 * IQR / sqrt(n)

upper: upper hinge, 75% quantile

ymax: upper whisker = largest observation less than or equal to
upper hinge + 1.5 * IQR

我建议为那些尚未记录的错误提交错误报告。有一个bug report对于 stat_bin2d,但它已修复为已关闭。如果您创建新的错误报告,您可以引用该报告。

关于r - ggplot 中特殊变量的文档(..count..、..密度.. 等),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15556069/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com