1d scatter plot r