im brand new to coding in R and im having issues with my lm function.
f <- lm(comm_YLL ~ region, data = hw1) # this saves properly
plot(xlab = 'years of life lost', ylab = 'reagression') # this returns the error below
abline(f) # haven't gotten this far
Error in xy.coords(x, y, xlabel, ylabel, log) : argument "x" is missing, with no default
I have no idea what any of this means, and am just generally confused how the lm function works. in this case comm_yll is a years of life lost to whatever, and region is what region a country is in. hw1 is the data im dragging this from