LKremer/ggpointdensity

adjust parameter not working in stat_pointdensity()

frederikziebell opened this issue · 1 comments

Independent of the value of 'adjust', I always get the same result. From the code, it seems the default 'adjust=1' is passed to the downstream StatPointDensity method.

Hi Frederik,
Good catch! The adjust parameter indeed only worked when using the geom, but not in when using the stat. You're right, I passed 1 to StatPointDensity when I should've passed adjust instead.

I put the wrong number in the commit message, but this commit should fix the issue (please re-open issue if not).

Thanks for reporting this,
Lukas