Heat map in R shiny

Hi
I was outputting a heat map plot using this command

output$plot2 <- renderPlot({
heatmap(x = as.matrix(cor(data2[,input$show_vars2])), symm = TRUE,cexRow=1,cexCol =1)
})

But unfortunately the x axis is not visible as expected, half of the label is missing
Any suggestions ?

You can set the dimensions of the plot in shiny.

For example:

renderPlot({    
    plot(x, y)}, height = 200, width = 300)

Some more information about your dataset would be good though:

Thank you. It worked

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.