Lines in the plane and decompositions of graphs