R in medical imaging