가 좋아 나는 R.있어 모든 것을 여기에와 같이 꾸몄다받을 문자의 알 수없는 번호를 제외하고는 꽤 좋은 찾고있는 행맨 게임을 저녁을 낭비하기로 결정 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)
가 어떻게 할 수 그것 때문에 같은 위치에 모두 FUN(5)
및 FUN(10)
플롯의 a
?
이 감사합니다. 다음은 패키지입니다 :'library (devtools); install_github ("hangman", "trinker")' –
Rstudio에서 시도했지만 윈도우 크기가 맞지 않으면 불안정합니다. –