This randomized pilot clinical trial studies the effects of meditation-based breathing training on patients' control of their breathing patterns and breathing-related movement, as well as on their psychological distress and treatment experience during radiation therapy. Meditation-based breathing training may decrease breathing-related movement and the amount of stress by improving breathing patterns in patients with abdominal or lung cancer undergoing radiation therapy.