Thanks Sanjay; I didn't know about the eval() function being available inside scatterplot. I initially tried using something like scatterplot…