I passed the following command to complete diversity analyses. I am able to view the emperor plots but I would like to obtain the distance matrices so I can generate heatmaps and other plots in R.
The distance matrices you are looking for are within the distance artifacts themselves (ex. bray_curtis_distance_matrix.qza).
You can export this file by following the qiime tools extract command, see here. Alternatively you can simply unzip the .qza files with your preferred tool and navigate to the ‘data’ subfolder.
Good luck!
p.s depending on what you are planning on doing you can make heatmaps in qiime2 using gneiss.
Just a quick note, usually qiime tools export is the easier command, since you only get the /data/ directory of the artifact, and not everything else (although I tend to use unzip personally). Also, I think q2-feature-table has a heatmap method as well!