I thought "type=discrete" was useful to treat a numeric data as a discrete data. Below is a part of my…