Plot Two Dimensional Function In R