Markdown(html_document):以标签标题绘制

时间:2016-10-06 13:20:19

标签: r shiny r-markdown

我有一个简单的降价文件:

---
title: "An interactive application (Knitr + Shiny)"
author: ""
date: "Wednesday, September 27, 2016"
output: html_document
runtime: shiny
---

我还有很多情节图表,例如:

library(plotly)
m <- list(
l = 50,
r = 50,
b = 100,
t = 100,
pad = 4
)
plot_ly(x = seq(0, 8), y = seq(0, 8)) %>%
  layout(autosize = F, width = 500, height = 500, margin = m)

我希望将每个图表放在单独的标签标题中 - 类似于html书签。我怎么能在r markdown文件中这样做。非常感谢您的任何建议。

我可以做点什么吗

## title {.tabset .tabset-fade}
content above tabbed region.

### tab 1 

plot_ly(x = seq(0, 8), y = seq(0, 8)) %>%
  layout(autosize = F, width = 500, height = 500, margin = m)

### tab 2

plot_ly(x = seq(0, 8), y = seq(0, 8)) %>%
  layout(autosize = F, width = 500, height = 500, margin = m)

如何将每个绘制图表放在单独的标签标题中?

0 个答案:

没有答案