my apologies; you are correct; I made a fault attributable to lack of coffee in the morning; I'm hopeful this will be patched in a future version of R.
Hi, yes sorry I forgot to put my code. I edited the post and just in case I also put my df.
Just to finish understanding, in the first graph you posted, what does the y-axis represent?
And in the second graph it shows what percentage of the total represents each value of the x-axis?
I guess the better question is what do you want the y-axis values to be?
You have a few choices: The ..count.. value you used for y in your code gives you something like a smoothed histogram, so the height in any very small region corresponds roughly to the number of values in that region. The current syntax for that choice is y = after_stats(count).
If you wanted the maximum of the curve to be at y = 1, then you would use after_stat(scaled), and if you wanted the area under the curve to be 1, then you would use the default value, which is after_stat(density).