In R, there is a function called \'density\'. The syntax for the function is -
density(x, bw = "nrd0", adjust = 1, kernel = c("gaussian",