使用knitr,我尝试将两个lattice图与c.trellis()进行生成和组合,但与预期的组合图不同,我得到了与合并网格对象的内部表示类似的内容:

MWE:
---
title: "Knitr and c.trellis"
author: "David Lindelöf"
date: "17 February 2016"
output: pdf_document
---
```{r}foo <- xyplot(1 ~ 1)
条<-木素图(2~ 1)
c(foo,bar)
我也尝试过在一个单独的块中调用print(c(foo, bar)),但没有成功。我做错什么了吗,还是knitr出了问题?
发布于 2016-02-18 05:58:30
我忘记了包含对library(latticeExtra)的调用,它定义了c.trellis()方法。
https://stackoverflow.com/questions/35467436
复制相似问题