我想消除对象之间的长距离并将第二张图向左对齐。问题可能出在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>