x<-c(1:1000)
y=x^2
# generamos estadisticas descriptivas para las variables
summary(x)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.0 250.8 500.5 500.5 750.2 1000.0
summary(y)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1 62876 250501 333834 562875 1000000
plot(y,x)
datos=data.frame(x,y)
head(datos)
## x y
## 1 1 1
## 2 2 4
## 3 3 9
## 4 4 16
## 5 5 25
## 6 6 36
plot(datos)