0
随着knitr
我尝试的产品,并与c.trellis()
结合两个lattice
地块,但不是预期的组合情节,我得到什么样子的结合网格物体的内部表示:如何让knitr与c.trellis一起工作?
MWE:
---
title: "Knitr and c.trellis"
author: "David Lindelöf"
date: "17 February 2016"
output: pdf_document
---
```{r}
foo <- xyplot(1 ~ 1)
bar <- xyplot(2 ~ 1)
c(foo, bar)
```
我也尝试在单独的块中调用print(c(foo, bar))
,但没有成功。我做错了什么,或者这是knitr
的问题?
啊,明白了。我忘记了调用'library(latticeExtra)'来定义'c()'的'trellis'方法。 – lindelof