I've just been advised to use the method trans_new in r's scales package to transform a plot's x axis using cubed root. I'm using trans_new to define a cubed root function and then using that cubed root function to transform the x axis (presumably this exercise is more academic than practical).
I've learned through trans_new's documentation that the method requires a transform argument and an inverse argument. The transform argument speaks for itself--through it, I define the transformation I want to apply to my data.
The inverse argument has me scratching my head, though. The documentation mentions what the argument does, but it doesn't say anything about why the argument is necessary.
inverse: function, or name of function, that performs the inverse of the transformation
The general description sounds a bit like it might be detailing the function of the inverse argument, but I'm not sure that's the case:
and it's expected that the labels function will perform some kind of inverse tranformation on these breaks to give them labels that are meaningful on the original scale.
Labels function? "Some kind of" inverse transformation?
A Google search has borne no fruit, so I would greatly appreciate anyone's help understanding why trans_new requires an inverse argument. What exactly is that argument doing?