plot density curve with R