0

I'm reading a book on R, and one of the commands is

ggplot(diamonds, aes(x = price, y = ..density..)) +
  geom_freqpoly(aes(color = cut), binwidth = 500)

The book explains that the graph shows the density of price, but it doesn't explain what the two dots around density are, and I haven't had any luck searching the documentation. What do the two dots do, and how should I know that I need to use them in this situation?

Ben Rubin
  • 6,909
  • 7
  • 35
  • 82

0 Answers0