Added R code to Tutorial
LineGraph: Handle invalid input
LineGraph: handle no duplicate names error