plot a graph between x and y

i am a new user and really don't know much about R and Rstudio. Can any one tell me how to draw a graph between and x and y and how to make any variable x in the existing data?