Roger Federer started off strong in New York, before disaster struck in the fourth round. (AP)

Until Labor Day, Roger Federer was flying through the 2018 US Open. The No. 2 seed defeated Yoshihito Nishioka, Benoit Paire and Nick Kygios in straight sets. Then, in a stunning upset, John Millman knocked him out 3-6, 7-5, 7-6 (7), 7-6 (3) on Monday night. 

This year is a small part of the Swiss' history at Flushing Meadows. From his first US Open title to the one player he has yet to beat, Federer's legacy at the final major of the year is long and complex.

See how much you know about Federer's ups and downs at the US Open: