运行tufte讲义示例(https://rmarkdown.rstudio.com/gallery.html)代码。除了与保证金数据有关的任何内容外,我都能得到正确的输出。
警告信息:
在 df<- structure(list(year = c(2016L, 2016L, 2016L, 2016L, 2016L, 2016L
), km = structure(1:6, .Label = c("km1", "km3", "km5", "km7",
"km9", "km15", "km20", "km25", "km30", "km35", "km42.5"), class = "factor"),
dist.km.work = c(0.5, 2, 4, 6, 8.5, 12.5), trips.work = c(14725L,
46730L, 58500L, 59710L, 87060L, 117535L), total.trips.work = c(476835L,
476835L, 476835L, 476835L, 476835L, 476835L), share.work = c(0.0308,
0.098, 0.12, 0.125,
0.18, 0.246)), row.names = c(NA,
-6L), class = c("tbl_df", "tbl", "data.frame"))
中:
未知语言引擎“ marginfigure”(必须通过knit_engines $ set()注册)。
另外,当尝试通过以下方式将图放在边距中时
以下代码无效:
get_engine(options$engine)
它不起作用,只需在文本下方绘制图形即可。有什么想法吗?