Issues using qiime2R

Hi, I have a quick question on running alpha and beta diversity in R-studio.

I tried the code you supplied and changed the variables to those I am interested in, but I keep getting this error.I have looked online, but I am not having luck finding a method to fix it.

Aesthetics must be either length 1 or the same as the data (192): x, y, shape, colour, size

thanks