1

是否可以在 flexdashboard 故事板模板中使用闪亮的功能?我希望功能是:

  1. 用户点击顶部的事件
  2. 热图显示在主故事板区域
  3. 右侧或左侧有一个按钮,允许用户单击它,将主图切换到时间序列
  4. 使用此按钮(可能是单选按钮)允许用户在主图表区域的图表之间来回切换
4

1 回答 1

1

你可以试试下面的代码。Flexdashboard 故事板为您提供您想要的。您必须指定什么热图并使用您的数据生成它。传单()

---
title: storyboard
output:
  flexdashboard::flex_dashboard:
    storyboard: true
runtime: shiny
---

第一块:

{r setup, include=FALSE}
library(flexdashboard)
library(shiny)
Heat map {.storyboard}
=======================================================
library(leaflet)
#create map here

#use shiny to create a dynamic map
renderLeaflet({heat_map})

Graphs {.storyboard}
=======================================================
plot(0)

于 2020-04-11T00:05:18.307 回答