plotM function

Plots average M of remaining genes