I am trying ggcorrplot in my server output in R shiny. ggcorrplot is used to create correlation matrix. I tried with renderPlotly. The output is not getting displayed. I am sure its because of this only. When I run ggcorrplot outside R shiny, I am getting the output. Please advice. Or is there an alternate way to create correlation matrix under ggplot only. My Sample data dataframe is like below
install.packages("ggcorrplot")
library(ggcorrplot)
df
Date         Var1     Var2     Var3    Var4      
1/1/2019      12       21       34      23
1/1/2019      13       22       35      24
1/1/2019      14       22       35      25
1/1/2019      15       22       35      26
corr <- round(cor(df[2:5]),1)
ggcorrplot(corr,method = "circle",lab = TRUE,hc.order = TRUE)
When I use ggcorrplot under renderploty, there is no output
 
    