Igneous rocks are classified according to their origin, mineral composition and