R = ρ
L
A
L
A

Changing material density affects the number of obstacles (atoms) electrons must navigate through.