我正在处理一个HTML输出rmd文件。底部的文字是左移,我不知道为什么。output where bottom text is shifted
这是代码底部的一段
`<p>
<a class="btn btn-primary" data-toggle="collapse" href="#msrpt" role="button" aria-expanded="false" aria-controls="msrpt">
Base MSRP vs # of EVs (Tesla filtered)
</a>
</p>
<div class="collapse" id="msrpt">
{r, echo = FALSE}
ev_pop_data_prices_g %>%
filter(make != "TESLA") %>%
filter(n>500)%>%
ggplot(mapping = aes(x = base_msrp))+
geom_col(mapping = aes(y = n, fill = make))+
theme(axis.text.x = element_text(angle = 45, vjust = 0.5, hjust=0.5))+
scale_fill_manual(values = c25)+
labs(x = "Base MSRP", y = "Number of EVs")
</div>
</div>
This is where text is forced left. `
此外,如果我尝试添加标题,文本根本不会显示在输出中。No text when adding title
这是代码底部的一段
`<p>
<a class="btn btn-primary" data-toggle="collapse" href="#msrpt" role="button" aria-expanded="false" aria-controls="msrpt">
Base MSRP vs # of EVs (Tesla filtered)
</a>
</p>
<div class="collapse" id="msrpt">
{r, echo = FALSE}
ev_pop_data_prices_g %>%
filter(make != "TESLA") %>%
filter(n>500)%>%
ggplot(mapping = aes(x = base_msrp))+
geom_col(mapping = aes(y = n, fill = make))+
theme(axis.text.x = element_text(angle = 45, vjust = 0.5, hjust=0.5))+
scale_fill_manual(values = c25)+
labs(x = "Base MSRP", y = "Number of EVs")
</div>
</div>
### Different formatting
This is where text is forced left. `
任何帮助将不胜感激。
1条答案
按热度按时间z31licg01#
插入
之间