【发布时间】:2020-06-11 07:43:06
【问题描述】:
我想删除对象之间的长距离并将第二个图形向左对齐。问题可能在于html结构,我不太了解。我尝试使用fig.align = 'left',但它不起作用。以下是我的示例:
#
# ---
# output: html_document
# ---
# ### TITLE
# <div class = "row">
# <div class = "col-md-6">
# ```{r echo=FALSE, message=FALSE, warning=FALSE}
# library(knitr)
# library(readxl)
# library(tibble)
# library(dplyr)
# library(kableExtra)
# library(plotly)
#
# dt <- mtcars[1:5, 1:6]
# dt %>%
# kable() %>%
# kable_styling()
#
# ```
# </div>
# <div class = "col-md-6">
# ```{r echo=FALSE, message=FALSE}
# plot_ly(
# x = c("giraffes", "orangutans", "monkeys"),
# y = c(20, 14, 23),
# name = "SF Zoo",
# type = "bar",
# height = 300, width = 400
# )
# ```
# </div>
# </div>
# ### TITLE
# <div class = "row">
# <div class = "col-md-6">
# ```{r echo=FALSE, message=FALSE}
# plot_ly(
# x = c("giraffes", "orangutans", "monkeys"),
# y = c(20, 14, 23),
# name = "SF Zoo",
# type = "bar",
# height = 300, width = 400
# )
# ```
# </div>
# <div class = "col-md-6">
# ```{r echo=FALSE, message=FALSE}
# dt <- mtcars[1:5, 1:6]
# dt %>%
# kable() %>%
# kable_styling()
# ```
# </div>
# </div>
【问题讨论】:
标签: html r r-markdown markdown