问题标签 [flexdashboard]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - 无法获得 flexdashboard modal Shiny 反应性来处理 NULL 状态
首先,这是一个最小的可重现示例:
假设我有以下flexdashboard
应用程序example.Rmd:
这是我的modules.R文件:
这是我想要完成的事情:
- 当页面加载时
distPlot
使用默认参数呈现。这应该总是发生。 - 当我单击“设置”
actionButton
时,它会弹出模态叠加层(但将背景中的绘图保持在其原始状态) - 允许用户更改弹出模式中的参数,但在用户点击“应用”按钮之前不要重新渲染绘图。
我想我已经弄清楚了#1,但是当我单击“设置”按钮时出现错误Invalid breakpoints produced by 'breaks(x)': NULL
。然后,我更改了输入,但它什么也不做(除非我点击设置actionButton
再次点击设置(这反过来会使用给定的输入渲染绘图)。
我究竟做错了什么?
谢谢!!
r - flexdashboard (storyboard: true) not working when runtime: shiny added
I'm trying to use Rmarkdown
, flexdashboard
(with the option storyboard: true
) and also shiny
. Everything works fine until I add runtime: shiny
. Then the frame tabs move faster than expected and even disappear.
I've tried two ways of specifying the storyboard mode, by adding storyboard: true
(commented out in the example code below) to the YAML and by adding the {.storyboard}
class to the page I want laid out as a storyboard. Same result.
You can see the different behaviour just by commenting in and out runtime: shiny
in the code below.
Any ideas of what I'm missing? Thanks for your help.
user-interface - 单击闪亮的操作按钮转到 flexdashboard 的另一页
我的test.Rmd
.
最初,我的应用程序位于第 1 页。我想在单击按钮时将我的应用程序带到第 2 页clickMe
。请在这件事上给予我帮助..!
r - 使用 Flexdashboard 在 Shiny tabpanel 中用 DataTable 填充容器
我正在编写一个 flexdashboard,它在选项卡中显示带有 DataTable (DT) 的数据框。
fillContainer=T
在 DT 和普通 flexdashboard 选项卡上使用时,我得到了想要的结果:我的数据表填满了它们的整个容器,但没有更多。
Shinyapps.io:带有 DT 的 fillContainer=T 的 Flexdashboard 选项卡
我现在正在尝试使用由闪亮的tabsetPanel
而不是 flexdashboard 选项卡动态生成的选项卡。我尝试了有和没有fillContainer=T
。但是数据表并没有完全填满容器,要么高度太长,要么太短(少于 2 行)。在这两种情况下,分页选项都显示在最后一行下方,而不是容器底部。
Shinyapps.io : 带有 DT 的 fillContainer=T 的闪亮标签
Shinyapps.io : 没有 DT 的 fillContainer=T 的闪亮标签
关于如何正确填充容器的任何想法?非常感谢
r - flexdashboard .storyboard 闪亮
如何将反应变量添加到情节提要中?我的代码如下
输出
所需
r - 比较 Shiny / rmarkdown::render_site() & flexdashboard
来自基于 R 代码构建网站活动的新手提出的一个高级问题:
我试图了解 Shiny 与 rmarkdown 提供的用于呈现交互式和/或 Web 内容的工具之间的关系(例如,使用rmarkdown::render_site()
, flexdashboard
)。
引发此问题的是阅读以下rmarkdown
文档:
R Markdown 文档是交互式内容的完美平台。
再加上看到这些用flexdashboard
.
要浏览可用于基于 R 代码构建网站的各种选项,我想知道:
Shiny
与 提供的功能 如何衔接rmarkdown
?Shiny
在易用性/可扩展性/灵活性方面,编程如何与rmarkdown
/进行比较flexdashboard
?
我做了一个相当大的shiny
应用程序,想知道我是否应该尝试迁移到例如flexdahboard
.
r - 在闪亮的应用程序中选择多个输入时,为什么错误取决于选择输入的顺序?
我有一个 flexdashboard 文档runtime: shiny
(我在这里发布了应用程序https://arie.shinyapps.io/reproducible_example/并嵌入了代码,但也想将代码放在下面,以防应用程序超出其在 shinyapps.io 上的分配使用量):
---
title: "Example"
runtime: shiny
output:
flexdashboard::flex_dashboard:
source_code: embed
---
给定以下示例数据集:
我希望能够从以下用户界面中进行多项选择:
并对选择进行 ggplot “反应”。所以我做了一个反应数据集:
并创建以下图:
现在,当 IRun Document
和 select first peter
、 thenpaul
和 thenmary
时,情节的反应完全符合预期:每次添加名称时都会添加一个条形图。例如,当我首先选择paul
然后peter
抛出错误时,就会出现问题Aesthetics must be either length 1 or the same as the data (2): x, y
。
在静态图表的上下文中,该错误对我来说是有意义的,但我对为什么选择名称的顺序很重要以及如何解决它感到困惑。