Instead of a histogram, we are going to make a smooth density plot. In this case we will not make an object, but instead render the plot with one line of code. Change the geometry in the code previously used to make a smooth density instead of a histogram.
We can also assign groups through the color argument. This has the added benefit that it uses color to distinguish the groups. Change the code above to use color
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here