-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
control legend format? #31
Comments
Isn't this already implemented in the argument |
I was having tmap in mind, sorry:) |
I've lodged #32 to address this. I see I have rights to merge it myself (I think this dates from years ago when you gave me those rights for additions re fonts), but I've refrained from doing this until I have @mtennekes views on the naming, and whether it's right to pass it only to |
Many thanks @ellisp ! The implementation seems correct to me. The value, density and manual treemaps are indeed the ones that could use formatting. As for the other ones: comparison does not need it since it contain percentages, and the others do not have numeric values. I have updated the https://github.com/mtennekes/treemap/blob/a67993a8b154b0de525fb89b9969de376e54ef86/pkg/DESCRIPTION file. Is you email address correct? Do you want me to release it soon? Normally, I wait under there are at least a couple of changes. |
Great, thanks. I changed the email address to my personal one; sometimes difficult to tell which hat I'm wearing, but this one was done at home in my time so probably best to put it like that (although we need it at work). No rush to put it into production at CRAN, put out a release when it makes sense. |
Is it possible to format the number as percentages? I generally use sprintf for stuff like that, and I am not aware how to do it using format(). Thanks, |
@Atan1988 I don't think it will let you do that. That would be another feature to add I think; either to replace |
@ellisp Peter, thank you for the response and the great work in implementing the format function. I know R fairly well, but I haven't learned how to use git yet. Would you have time to implement the sprinf function? If not, would you be willing to help with the pull/commit side of the things, if I take a shot at modifying the code? Thanks a lot! Allen |
It's really confusing, all those formatting functions: As @ellisp suggested, we can add |
Was looking through the issue statement and the percentage issue is something that would be really helpful for me...just my two cents. Thanks for creating the package! |
would you consider a pull request that let the user control the legend format? eg pass through arguments to
format
so it can have big.marks, etc. I could have a go but won't put the effort in if you've already thought it through and decided there's enough customisation and long argument lists already.The text was updated successfully, but these errors were encountered: