0
I made the following commands on R:
setwd:(###)
data1<-read.table("scatter1.txt",header=T)
head(data1)
tail(data1)
summary(data1)
str(data1)
names(data1)
plot(xv,ys,col="red")
And the message appeared below:
Error in Eval(predvars, data, env) : Object 'xv' not found
What could be wrong?

xvandysare columns ofdata1? If yes, you have to indicate the origin of these two objects:plot(data1$xv, data1$ys, col="red"). If it doesn’t work, put some of your data here so we can reproduce:dput(head(data1)).– Willian Vieira
Note that you do not have the objects
xvandys. Possibly, these are the data1 fields. If it is, you can doattach(data1)orplot(data1$xv, data1$ys, col="red").– Daniel Ikenaga