Need help creating a Regression Chart

Hi Alexander, welcome!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

Since we don't know from where are you getting the gss dataset, I have made this example with the iris built-in dataset.

library(ggplot2)
ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width)) +
    geom_smooth(method = "lm") +
    geom_point()

Created on 2019-04-08 by the reprex package (v0.2.1.9000)

1 Like