just add a warnimg and change the for loop output in case of tune plsda return only 2 components. Before, the plotVar loop return an error.