Update plot_mg_pcoa.r

added option to select distance metric