Error in SetPage(orient = "PORTRAIT", perpage = 1, type = type, filestem = "PRS_Plot_gastric_cancer_ALL-5FENLEI") :
could not find function "SetPage"
#当我在使用R代码画图时,遇到这样的报错,想问一下 这里的 “SetPage”是什么包里的函数呀?
完整代码:
type <- "PDF"
SetPage(orient="PORTRAIT", perpage=1, type=type, filestem="PRS_Plot_ALL-5FENLEI")
LinearPlot(ce17, mainfont=2, YLogScale=TRUE,DataLogged=TRUE,new.plot=TRUE,yticks=c(1.0,1.2,1.4,1.6,1.8,2.0,2.2),ylim=c(1,2.4),boxcols="#00468BFF",boxbordercol="#00468BFF",linecols="#0099B4FF")
AxisLabels(xlab="PRS (%)",ylab="HR (95% CI)",mainfont=1.2)
line<-lm(Estimate~RF_Level,data=ce17)
AddLine(summary(line)$coef[1,1],summary(line)$coef[2,1], lty="solid",originLeft=ce17$RF_Level[1],originRight=ce17$RF_Level[5],col="#AD002AFF")
AddLine(0,0, lty="dashed",originLeft=ce17$RF_Level[1],originRight=ce17$RF_Level[5],col="#AD002AFF")
dev.off()