Hillary Clinton won Maine’s overall popular vote in the 2016 presidential election, but president-elect Donald Trump won a far greater share of votes than Mitt Romney did in 2012.

Trump’s gains were especially impressive in mill towns along the upper Androscoggin River, many of which went for Obama in 2012. In Mexico, for instance, Obama won by a 41-point margin in 2012; this year, Mexico went for Trump by 8 percentage points.

This map illustrates how Maine’s towns swung to the right (or, in a handful of cases, to the left) between the 2012 and 2016 elections. Red lines indicate towns where Trump’s margin improved on Mitt Romney’s in 2012; blue lines indicate towns where Clinton gained compared to Obama in 2012. The angle of each line indicates how big the swing was. Click a town to see detailed vote totals and margins in both elections.

Search by town name

SOURCE: Associated Press, Maine Secretary of State
INTERACTIVE: Christian MilNeil | @c_milneil