The correct statement is: The Hertzsprung-Russell diagram plots stars according to their luminosity and temperature, which is also associated with spectral class.
This diagram is a key tool in astrophysics for understanding the relationships between different types of stars, their stages of evolution, and their physical properties.