Suppose you have a dataset ‘CallRecords.csv’ that contains the two columns: ‘dur_min’ and ‘balance’. How will you plot a graph of the two variables?

CR = red.table(“CallRecords.csv”)

plot(CR$dur_min, CR$balance)




The key point to remember is that to refer to a variable in R, we are required to type the dataset and the variable name joined with a $ symbol as R does not know to look for the variables in the dataset automatically.