1
我無法設法從條件密度圖(cdplot {graphics})中移除y軸標籤以便稍後水平旋轉它們; axes = FALSE
似乎不起作用。任何想法? 謝謝!刪除R條件密度圖中的軸標籤
使用從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
如果你提出一些最低限度可重複的代碼和樣本數據的問題,這將是有幫助的。看到這個問題的幫助:http://stackoverflow.com/q/5963269/602276 – Andrie