Density Plot from Data Frame

Hi. Screenshots are, unfortunately, singularly unhelpful. A reproducible example, called a reprex is far more useful and will get you more, and more useful answers. We're all lazy and unlikely to try to reverse engineer the data for a problem. It doesn't even actually have to be your data, so long as it's similar--in this case multiple continuous variables, like the famous mtcars, which you could cast as a similar five variable dataframe

mtcars[1:5]

The next step is to reduce the problem to its simplest case: what are you doing to plot the density of a single variable, say mtcars$mpg?

Also, should this apply, please review the homework policy

1 Like