Issue here: xlim is naturally adjusted according to features of the training and testing window. But this window is set inside a reactive function, and is not passed outside it.
Options:
Make multiple reactive functions that perform overlapping tasks: bad code design, slow.
Make finely nested reactive functions that each perform micro-tasks: seems clunky, over-wrought.
Issue here: xlim is naturally adjusted according to features of the training and testing window. But this window is set inside a reactive function, and is not passed outside it.
Options: