argument "y" is missing, with no default

Good day, may I know why I will get this error?
Warning: Error in .check_data: argument "y" is missing, with no default

Below is my code.
output$correlationGraph <- renderPlotly({

ggscatter(data = datatable,x = aes(x=`Daily New Cases`, y =`Daily Deaths`), 
          add = "reg.line",                               
          conf.int = TRUE,                                  
          add.params = list(color = "blue",
                            fill = "lightgray"))+
  stat_cor(method = "pearson", label.x = 3, label.y = 30) 

})

image

ggscatter(data = datatable,x =`Daily New Cases`, y =`Daily Deaths`,
       

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.