看板 R_Language 關於我們 聯絡資訊
[問題類型]: 程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來) [軟體熟悉度]: 入門 [問題敘述]: 目前就我認識的R程式套件中,僅有gplots中的textplot 可以打印出文字資訊在輸出圖表 中, 但是偶而會遇到輸出資訊非常多,導致整個圖表的文字變得很小,會變成如下: 圖片網址:http://imgur.com/msgpWM0 但是如果我加上textplot的參數(cex=2)文字會超出範圍,則會變成如下: 圖片網址:http://imgur.com/a/E9kDX 想請問各位大大是否有相關的textplot的參數或是R系統參數可以調整, 方能使輸出圖表的字體可以保持正常的大小例如說:跑出捲軸可以拉之類的? 謝謝各位 [程式範例]: # load the lavaan package (only needed once per session) library(lavaan) # specify the model HS.model <- ' visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 ' # fit the model fit <- cfa(HS.model, data=HolzingerSwineford1939) # display summary output textplot(capture.output(summary(fit, fit.measures=TRUE))) [環境敘述]: R-Studoio R 3.2.5 Windows 7 [關鍵字]: textplot, R environment parameter -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.140.155.202 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1500024757.A.A8F.html
andrew43: 如果是單純輸出txt再txt to pdf之類的程式如何? 07/14 18:55
x88776544pc: pdf("檔名",width=10,height=30) 07/14 20:36
x88776544pc: textplot(略); dev.off() 是想要這樣的效果嗎? 07/14 20:37
power80203: 謝謝你,但比較是希望可以找到plot area的參數,不是 07/15 20:12
power80203: 輸出在pdf 07/15 20:12
celestialgod: cex=1.2, 1.5之類的試試看阿 07/15 20:57
power80203: 目前使用cex參數的效果比較不好,但還是謝謝喔 07/17 09:57
andrew43: 目前我用過的screen plot device都不會有捲軸。 07/18 01:15
andrew43: 我的話會輸出成pdf並使用可即時更新內容的PDF viewer。 07/18 01:17
power80203: 看來是要朝向輸出PDF的方向,謝謝各位的不吝指教 07/20 11:16