【问题标题】:ggvis: can't find compute_quantreg functionggvis:找不到 compute_quantreg 函数
【发布时间】:2016-03-14 16:24:43
【问题描述】:

我正在尝试在ggvis 中创建geom_quantiles,the documentation 表示这可以使用

geom_quantile = layer_paths + compute_quantreg

但是,我找不到compute_quantreg 函数。 google search 除了说要执行上述操作的同一文档页面外,什么也没有提出。我还尝试了??compute_quantreghelp("compute_quantreg"),但没有成功。知道在哪里可以找到这个功能吗?

截至目前,我使用的是最新版本的 ggvis (ggvis_0.4.2)、dplyr_0.4.3ggplot2_2.1.0

【问题讨论】:

  • 从文档中... “但是,由于 ggvis 目前提供的转换很少,许多翻译目前不存在 - 但它们在路线图上,并将随着时间的推移添加。”
  • 我的印象是这条线适用于那些没有ggvis 对应物的几何图形(例如geom_violin),但我想它适用于更多。感谢您的信息!
  • 也许您应该自己回答这个问题? (你可以随时回来更新你的答案......)(一个可重复的例子也很好......)另外:library(ggvis); apropos("^compute_") 是查看哪些计算层(或任何它们被称为)的好方法已实施 ...另外:我认为这可能需要提交an issue。另外:github.com/ncarchedi/ggcomp/commit/…
  • @Ben,如果您将评论作为答案,我将接受它作为最终答案。我认为它比我现在拥有的要有用得多。
  • 随意将我的 cmets 纳入您的答案中......

标签: r ggvis


【解决方案1】:

正如 cmets 中提到的 cory,截至 2016 年 7 月 5 日,此函数看起来是 on the roadmap but has not yet been added

Ben 还提到了这个简洁的apropos 函数,如下所示,可以使用它来查看实现了哪些计算层(或它们所称的任何层)。

library(ggvis)
apropos("^compute_") 

请参阅this linkquantile-compute.R 函数,了解compute_quantile 函数的潜在实现。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-05
    • 1970-01-01
    • 2019-09-09
    • 2012-01-07
    • 2019-05-19
    • 2020-10-02
    相关资源
    最近更新 更多