started making function to draw dotplots