如何解决使用R Notebook作为父母来管理孩子如何显示子rmd的表格和绘图?
我正在创建一个R笔记本以收集我所有的科学实验室报告。我希望完整的实验室报告在最终的笔记本中显示表格和图表,以便我可以根据需要进行更新并使用toc引用每个报告。这是笔记本代码:
---
title: "Biochem Electronic Lab Notebook"
output:
html_notebook :
toc : yes
toc_depth: 1
---
```{r child = 'PipetteLab.Rmd'}
```
“ PipetteLab.Rmd”中包含大块
### Data
```{r}
pipetteframe <- read.table(header=TRUE,text="
Pipette Volume Before After
1000D 100 3.43 3.52
1000D 250 3.52 3.77
1000D 400 3.77 4.17
1000D 550 4.17 4.69
1000D 700 4.69 5.38
1000D 850 5.38 6.19
1000D 1000 6.19 7.17
100A 100.0 7.17 7.27
100A 85.0 7.27 7.35
100A 70.0 7.35 7.42
100A 55.0 7.42 7.47
100A 40.0 7.47 7.51
100A 25.0 7.51 7.53
100A 10.0 7.53 7.54")
pipetteframe$Mass <- pipetteframe$After - pipetteframe$Before
p1000lm <- lm(Mass ~ Volume,data=pipetteframe,subset=(Pipette=="1000D"))
summary(p1000lm)
p100lm <- lm(Mass ~ Volume,subset=(Pipette=="100A"))
```
和
#### Graph
```{r}
plot(Mass ~ Volume,type="n",main="Mass of water pipetted as a function of Volume set on the pipetter",xlab=expression(paste("Volume (",mu,"L)")),ylab="Mass (g)")
points(Mass ~ Volume,pch=1,subset=(Pipette=="1000D"))
points(Mass ~ Volume,pch=2,subset=(Pipette=="100A"))
abline(p1000lm,lty=1)
abline(p100lm,lty=2)
legend(0,1,legend=c("1000D","100A"),pch=1:2,lty=1:2)
#Graph of the mass of water pippetted as a function of volume set on the pipetter
```
我遇到的问题是父笔记本不会像子rmd一样显示绘图或表格(它不会运行块 并保持我也编写的分析结果)。如果您有任何建议要压缩我到目前为止的数据块和/或在父笔记本中显示子rmd的表格和图表,我将不胜感激。
谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。