externalise reactive expressions for plotDist