Peak position: Determined by the dimensions of the crystal (interplanar distances).
Peak intensity: Determined by where the atoms are located within the crystal (structural chemistry).
Peak shape: Determined by the size of the grains and crystal imperfections.