hi im trying to replace my teachers code with my variables, I'm plotting my data and my professor has this code:
plot(latentmean_FA~govexp_edu_WDI, data=mydata,
main="Human Rights by Government Education Expenditures",
xlab= "Government Education Expenditures, % of GDP",
ylab= "Human Rights Respect, Fariss (2014) Latent Variable")
so i ran this code, replacing his titles with mine:
plot(latentmean_FA~ind_total_OFSI, data=mydata,
main="Human Rights in Latin America by United States Foriegn Direct Investment",
xlab= "U.S. Foreign Direct Investment",
ylab= "Respect for Human Rights in Host Country")
and i got this error code :
Error in eval(predvars, data, env) : object 'ind_total_OFSI' not found.
I dont really know what I'm doing in R so I would be really thankful for any help!