簡體   English   中英

如何在ggforest(或coxph回歸圖)中更改地塊大小?

[英]How to change plot size in ggforest (or coxph regression plot)?

是否有增加繪圖大小的功能? 我有+20個功能,即使縮小字體大小,繪圖也會混亂。

output$coxplot <- renderPlot({ 
   fit.coxph<- coxph(Surv(time,status) ~ feature1 + feature2 +...+featureN, data=data)
    print(ggforest(fit.coxph, data = dat, fontsize = 0.3,noDigits = 3) )
  })

嘗試渲染閃亮並調整繪圖高度和寬度或大小,但ggforest函數中沒有參數稱為“大小”,但有“fontsize”。

@marius:謝謝。 你的問題暗示我回答我自己的問題。 在閃亮的應用程序中,在ui中設置大小而不是在ggforest中作為參數。 plotOutput(outputId = "coxplot", height = 750)

如果我沒有使用閃亮,想知道如何在ggforest中設置size參數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM