-
Notifications
You must be signed in to change notification settings - Fork 1
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
constant modifier function #117
Comments
I would have thought it could just be done with the double arrow assignment, e.g.
|
While I think this could be useful, I think this is one that we would want to talk with comms about - do we want smaller text to be an option? The cases I've had where this would have been nice are on caption sizing on small graphs and on-chart labels where I have several things close together. In both of those cases, though, the solution could instead be to change the graphic, rather than the font size. |
@nmpeterson, can you remind me why we defined |
I think it was so we could export it? We made the change in 67e0f5f |
Thanks for tracking it down. Here's the PR: #73. |
It's worth noting that is is partially but not completely in #123 (version 1.2), and in a side experiment from a few months ago I created a framework that I think would address this if we decided to move forward with this. See the creation and use of Most of the work is done, I'd like to implement it at some point. |
Timi ran into a problem today in which he needed to modify a value of
cmapplot_globals
- in his case, he wanted to shrinkcmapplot_globals$fsize$S
to something smaller than 11, the default. This is difficult/impossible to do from outside the the package, because (contrary to it's name!)cmapplot_globals
is not a "global" variable from the user's perspective.We could use a simple setter function
modify_globals(name, value)
that modifies a certain constant ofcmapplot_globals
.Use cases:
this should be easy to do with the function
assign
... something likeassign(paste0("cmapplot_globals$", name), value)
... although I'm not sure that$
works within functions/strings like that.The text was updated successfully, but these errors were encountered: