RPubs will retire in June 2027.
Your existing documents will stay accessible through December 31, 2031
and
Connect Cloud
is the recommended home for new publishing.
Read the blog post
Developing an R function to draw a density curve representing the probability density function of a continuous variable with separate curves for each group, using ggplot2.