How to resolve ggpairs error for unused argument?

198 views Asked by At

The following code I have run a number of times without any issue, but recently it is throwing an error message:

ggpairs(df_scatterplot, 
        columns = c(2:5, 14),
        lower = list(continuous = wrap("smooth", method = "lm")),
        
)

The error message says: Error in wrap("smooth", method = "lm") : unused argument (method = "lm) Previously, I used to get the output with the trendline.

I have replaced method = "lm" with other methods as well such as method = "loess" but that too came with the same error message.

Now without the last line, it works fine! Of course, I don't get the trendline!

I would like to show the trendline and hence looking for a solution to this!

Thank you wonderful people for your time and help!

0

There are 0 answers