创建organizned部分我想包括在knitr部分,我看到一个奇怪的现象:你怎么knitr
这是文件的标题:
title: "cpu usage document"
date: "October 29, 2015"
output:
pdf_document:
number_sections: yes
toc: yes
toc_depth: 2
highlight: zenburn
keep_tex: true
---
在我有这样的事情块的一面:
cat("# cpu1 Bound \n")
print(ggplot output here)
cat("# memory1 Bound \n")
print(ggplot output here)
cat("# cpu2 Bound \n")
print(ggplot output)
cat("# memory2 Bound \n")
print(ggplot output)
当我编译knitr
我看到类似这样的东西。
1. cpu1 bound
ggplot chart
2.memory bound
3.cpu2 bound
4.memory2 bound
ggplot output for memory1
ggplot output for cpu2
ggplot output for memory2
我做错了什么?有没有更好的方法来创建knitr中的部分?
你想要什么你的输出看起来像什么?你为什么把标题放在'cat'里? – A5C1D2H2I1M1N2O1R2T1
输出应该在每个标题下,应该有相应的ggplot。 – user1471980