R Log spectro plot func. Mag->dB convt