Added option for plotting discrete data. Added example for discrete data.