Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcompare_areas(): scale_fill name in labs() #16
Comments
|
Hi @cucumberry - thanks for reporting this. I've updated the package for both this function and the
|
|
ps: I didn't realise you could name legends in the |
|
Thanks Seb, yes it seems to work right |
compare_areas()hard-codes the fill legend title as "Area compared to Benchmark":https://github.com/PublicHealthEngland/fingertipscharts/blob/master/R/quick_charts.R#L137
I'd prefer to have it say "Area compared to England". Because the name is defined within
scale_fill_phe(), you can't overwrite it without replacing the whole scale. If it were defined inlabs()instead, that wouldn't be a problem. For example:I've noticed names defined in the scale functions elsewhere too, which could probably all be moved into
labs(), but it's only been a problem for me withcompare_areas().