1
好吧,我決定浪費晚上做劊子手遊戲R.得到的一切看起來相當不錯,除了字母數目不詳這裏看到,得到畫在:陰謀分裂特徵向量
a
b
f
d
g
這裏的使用text
和mtext
一個例子/企圖:
FUN <- function(n) {
plot.new()
mtext("wrong", side = 3, cex=1.5, adj = 0, padj = 1, col = "red")
wrong <- letters[1:n]
text(0, .8, paste(wrong, collapse = "\n"), offset=.3, cex=1.5)
}
FUN(5)
FUN(10)
FUN2 <- function(n) {
plot.new()
mtext("wrong", side = 3, cex=1.5, adj = 0, padj = 1, col = "red")
wrong <- letters[1:n]
mtext(paste(wrong, collapse = "\n"), side = 3, cex=1.5,
adj = 0, padj = 2.5)
}
FUN2(5)
FUN2(10)
我怎樣才能使它所以a
在同一位置都FUN(5)
和FUN(10)
陰謀?
謝謝你了。這裏是包:'庫(devtools); install_github(「hangman」,「trinker」)' – 2012-07-24 05:01:48
儘管我在Rstudio中試過,如果窗口大小不合適,它會變得不穩定。 – 2012-07-24 05:06:45