【发布时间】:2011-08-23 12:42:56
【问题描述】:
我无法从条件密度图 (cdplot{graphics}) 中删除 y 轴标签,以便稍后水平旋转它们; axes = FALSE 似乎不起作用。任何想法?
谢谢!
使用 R 文档中的示例数据:
fail <- factor(c(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1),
levels = 1:2, labels = c("no", "yes"))
temperature <- c(53, 57, 58, 63, 66, 67, 67, 67, 68, 69, 70, 70, 70, 70, 72, 73, 75, 75, 76, 76, 78, 79, 81)
cdplot(fail ~ temperature, axes = FALSE)
Warning messages:
1: In density.default(x, bw = bw, n = n, ...) :
non-matched further arguments are disregarded
2: In density.default(x[y %in% levels(y)[seq_len(i)]], bw = dx$bw, :
non-matched further arguments are disregarded
【问题讨论】:
-
如果您用一些最少的可重现代码和示例数据提出问题,这将很有帮助。请参阅此问题寻求帮助:stackoverflow.com/q/5963269/602276