v2 of render_pcoa function added