Open
Description
The Challenge
Many of our charts use the same y-axis label, "Number of Rules", while other charts use the labels "Number of Actions" and "Thousands of Pages". To avoid having to make the same update across 10+ charts, we want to optimize the y-axis labels.
Potential Solutions
We discussed storing the y-axis labels as objects in the Style.r file. This is good, but we could also figure out if R has functionality similar to Python's dictionary system, where we could type in a key and get back the proper string for the y-axis label.
- There is an R package called "dict" that could help
- We could also explore using "if" statements, based on the title of each plot
- Or something else entirely!