#my first R script x = c(1,2,3,4,5,6,7,8,9) y = c(1,-1,1,-2,3,5,4,-3,6) #plot y as a function of x plot(x,y)