1 + 1
[1] 2
2
df <- data.frame(x = 1:8, y = 3:10) m <- lm(y ~ x, data = df) plot(df$x, df$y) abline(m)
import matplotlib.pyplot as plt import numpy as np xpoints = np.array([1, 8]) ypoints = np.array([3, 10]) plt.plot(xpoints, ypoints) plt.show()
a change