>Copilot really helps with R-based ggplot semantics and options because it's got so much to learn from. Not sure that would be true for the subtle differences in the ggplot clones
I would suspect this wouldn't be much of a hurdle for an LLM. If you've ever tried converting scripts from one language to another you can see how well LLMs generalise (not perfect ofc). So, as long as you give it enough context it will probably provide viable results.
Except if the range of the function given the same domain is much, much bigger. Extrapolation of a [massively multidimensional, non-linear] function is a lot harder than interpolation.
I would suspect this wouldn't be much of a hurdle for an LLM. If you've ever tried converting scripts from one language to another you can see how well LLMs generalise (not perfect ofc). So, as long as you give it enough context it will probably provide viable results.