How do setups work on an F1 car

Front wings, ballast and transmission are a few of the elements that F1 drivers need to take into account when setting up a Formula 1 car.

But how does changing a specific area of the car affect the handling?

2018 Austrian Grand Prix: Race Highlights:

[Youtube]