add basic implementation of base R plot for 1d numeric functions