I have the df1:
Stabr PCTPOVALL_2018 FIPS score1 score2 score3
3 AL 13.8 1001 26 3 10
4 AL 9.8 1003 20 1 5
7 AL 13.2 1009 21 6 7
8 AL 42.5 1011 60 5 10
9 AL 24.5 1013 65 3 10
10 AL 19.5 1015 42 2 8
I would like to plot df1$PCTPOVALL_2018 against score1. I would also like to run a linear regression to see if there is a significant association between these variables. I would then like to plot the p-value, the R^2, and the line of best fit onto this graph. I have included an image that I made in paint for reference. I know to begin with plot(df1$PCTPOVALL_2018,df1$score1,xlab="Pov",ylab="Score",main"Score vs Pov")
how do I add these components? Do I need to use ggplot?
