Changed plot of sd to use x=grid, which is either quantiles or raw
x values depending on user's choice.