1. A phase analyzer comprising: a principal component analysis section that performs principal component analysis on elemental map data that represents an intensity or concentration distribution corresponding to each element to calculate a principal component score corresponding to each unit area of the elemental map data; a scatter diagram generation section that plots the calculated principal component score to generate a scatter diagram of the principal component score; a peak position detection section that detects a peak position from the scatter diagram; a clustering section that calculates a distance between each point and each peak position within the scatter diagram, and classifies each point within the scatter diagram into a plurality of groups based on the distance; and a phase map generation section that generates a phase map based on classification results of the clustering section.