I can get this to work without using Shiny but I am getting this error. Basically I am trying to add lines to the graph based on a checkbox. I do this by creating the vector