The correct statement is:
The Hertzsprung-Russell diagram plots stars according to their luminosity and temperature, which is also associated with spectral class.
This statement accurately describes how the diagram is used to compare stars based on these two fundamental properties. Stars are typically plotted with temperature on the horizontal axis (decreasing from left to right) and luminosity on the vertical axis.