The minimum observation in my data is 326. But geom_freqpoly plots a frequency polygon that starts below zero. What gives? And how do I make it start in a sensible place?
min(diamonds$price)
# [1] 326
qplot(price, data=diamonds, geom="freqpoly")

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set the origin argument:
geom_freq poly() is by default figuring out the polygon to make using the same stat_bin() function that geom_histogram() uses. You can get more information on different valid arguments for controlling the density estimate from
?stat_bin()