[問題] ROC curve的X-Y軸的文字如何放大
ctrl + y 可以刪除一整行,請將不需要的內容刪除
文章分類提示:
- 問題: 請問在用plot作圖時,如何把x-y軸的文字放大?
試過legend, xlab, ylab,都不行。
請把以下不需要的部份刪除
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
把X-Y軸文字放大
[軟體熟悉度]:
請把以下不需要的部份刪除
入門(寫過其他程式,只是對語法不熟悉)
[問題敘述]:
XY軸上的文字放大
*[m
[程式範例]:
請把以下不需要的部份刪除
# Data preprocess and Variable designation
fit1 <- glm ( y ~ x, data=dt, family= binomial)
summary(fit1)
# Loading the package required
library(pROC)
# formula for multiple ROC
prob1<-predict(fit1,type=c("response"))
dt$prob1 <- prob1
g1<-roc(y~prob1, data =dt)
# plot
plot(g1, lty=1, col="black",lwd=8, main=“test”,
cex=2,font=2)
#
legend(x=0.455,y=0.4,legend = “a”,
col="black",
lty=“1”, lwd=10, bty = "n", box.col="red", merge=TRUE
)
張貼能夠重現錯誤的程式碼,可以幫助版友更快的幫你解決問題
[環境敘述]:
RStudio,R3.4.2
[關鍵字]:
選擇性,也許未來有用
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.138.23.226
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1510376464.A.661.html
→
11/11 17:05,
8年前
, 1F
11/11 17:05, 1F
→
11/11 23:51,
8年前
, 2F
11/11 23:51, 2F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章