What command does the ploting of the PDF of a data in similar way as 'hist' command plots the histogram? I have a set of data from 1 to 500. My data ranges between -2 and 2. I want to plot the pdf such that the x-axis contains my data (which is -2 to 2 and not 1 to 500 ) while the y-axis is the PDF. When done, this should look similiar to the the result obtained in the 'hist' command.
NOTE: I do not want the result of the 'hist' command and the pdf on the same graph.