Reputation: 379
Is there a functionality to increase plot size? I have +20 features and the plot is cluttered even after reducing font-size.
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) )
})
Trying to render in shiny and adjust the plot height and width or the size but no parameters in ggforest function called "size" but there is "fontsize".
Upvotes: 0
Views: 1382
Reputation: 379
@marius: thank you. Your questions hinted me towards answering my own question. in the shiny app, setting size in ui worked instead of in ggforest as a parameter. plotOutput(outputId = "coxplot", height = 750)
Would like to know how to set size parameter in ggforest if I weren't using shiny.
Upvotes: 2