She was a principal dancer at New York City Ballet from 1955 to 1973 , and George Balanchine choreographed leading roles for her in over 20 of his ballets , including such masterpieces as Agon , Liebeslieder Walzer , A Midsummer Night 's Dream , and Stars and Stripes .