Update LD_decay.r

updated the write pdf option which seemed to cause problems