[英]How to remove empty space between graphs in R markdown
我想刪除對象之間的長距離並將第二個圖形向左對齊。 問題可能出在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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.