Voters who haven't yet settled on a candidate in the presidential election are more Republican-leaning as a group than Democratic, suggesting that GOP nominee Donald Trump can make last-minute gains if he can persuade those voters to return to their home party.

Some 30% of undecided voters call themselves Republicans, compared with 21% who call themselves Democrats, an analysis of Wall Street Journal/NBC News national polling shows.

In...