What was the independent variable in Mendel's pea plant experiment?

A.The temperature
B.Cross-pollination
C.Type of plant
D.Characteristic of the offspring