【发布时间】:2015-10-12 20:03:10
【问题描述】:
【问题讨论】:
-
发布 R 问题时请提供reproducible example。
-
更改字体大小,或增加画布大小。
标签: r plot transactions data-mining arules
【问题讨论】:
标签: r plot transactions data-mining arules
library(arulesViz)
data("Groceries")
rules <- apriori(Groceries, parameter=list(support=0.001, confidence=0.5))
调整图形设备的高度
f <- function(height) {
pdf(tf <- tempfile(fileext = ".pdf"), height = height)
plot(rules, method="grouped")
dev.off()
shell.exec(tf)
}
f(5) # too small
f(10) # better height
或尝试使用交互式绘图
sel <- plot(rules, method="grouped", interactive=TRUE)
【讨论】:
Groceries <- arulesViz::abbreviate(Groceries)
```{r} 替换为```{r, fig.height=20}。