1. A phase analyzer comprising: a principal component analysis section that performs principal component analysis on N items of elemental map data that represents an intensity or concentration distribution corresponding to each element and obtains information about N principal components to calculate a principal component score corresponding to each pixel of the elemental map data from the obtained information about the N principal components; a scatter diagram generation section that selects at least two principal components having larger eigenvalues from among the N principal components and plots a point corresponding to the pixel on a coordinate system with coordinate axes indicating principal component scores of the selected principal components to generate a scatter diagram of the principal component score; a peak position detection section that divides the scatter diagram into a plurality of areas, counts a number of data points within each of the plurality of areas to calculate a point density, and detects a peak position based on the point density; a clustering section that calculates an Euclidean 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 by providing a color to each point within the scatter diagram when the color is different for each group of the plurality of groups, and by reflecting the color provided to each point within the scatter diagram on the color of each pixel of the elemental map corresponding to each point within the scatter diagram.