This shows how you need to use :: with all your functions that are not in base R.

sampleplot(x, y)

Arguments

x

The x variables.

y

The y response values.

Value

the coefficient of the linear regression

Examples

x <- 1:10
y <- 10+3*x + stats::rnorm(10, 0, 10)
sampleplot(x, y)

#> (Intercept)           x 
#>   12.969998    2.556096