r - 使用 Plotly 在 RShiny 中创建水平漏斗图
问题描述
我想在 R Shiny 中创建一个水平漏斗图。我已经尝试过定向功能,但无法使其正常工作。任何帮助将不胜感激
library(plotly)
fig <- plot_ly()
fig <- fig %>%
add_trace(
type = "funnel",
y = c("Website visit", "Downloads", "Potential customers", "Requested price", "invoice sent"),
x = c(39, 27.4, 20.6, 11, 2)
)
fig <- fig %>%layout(yaxis = list(categoryarray = c("Website visit", "Downloads", "Potential customers", "Requested price", "invoice sent")))
fig
解决方案
推荐阅读
- python - Pythonanywhere。ImportError:没有名为“crispy_forms”的模块
- java - 遵循 BDD 时单元测试与端到端(集成本身)之间的关系
- c# - System.ComponentModel.Win32Exception: '系统找不到指定的文件'
- uwp - UWP 控制台应用程序能否在 Windows 10 IoT 上运行
- com+ - Win 7/10 64 bit -- 注册 VBR/TLB 文件
- sql-server - SQL Server CDC:__$seqval 如何在幕后工作?
- java - 在 jpa Criteria 中热添加另一个对象的参数列表
- python - 列表子类的 Python 类型
- c - 我一直在这里遇到分段错误。在这里待了4个小时
- performance - 在 Allegro 5 中绘制许多图元的最快方法