Gnuplot If Then Function In R Programming