sma_plot
plot sma correlation analysis add regression line and add r2
sma_plot(datf, xvar, yvar)
a dataframe, include columns x and y
unquoted string for column name x
unquoted string for column name y
a ggplot with regression line and r2 text
sma_plot(mtcars,xvar=mpg,yvar = cyl)
#> Warning: All aesthetics have length 1, but the data has 32 rows.
#> i Please consider using `annotate()` or provide this layer with data containing
#> a single row.