The mean stress is recorded in the R-value. In comparison to the mean stress-free case (cyclic loading, R=-1), the S-N curve (Woehler lines) is moved to higher sustainable stress amplitudes in the case of trials with mean compression stresses. In the case of trials with mean tensile stresses, the S-N curve (Woehler lines) is moved to lower sustainable stress amplitudes. The sustainable stress amplitude's dependency on the mean stress is material-specific, and is called the influence of the mean stress. This usually increases along with the tensile strength of the material.
Here R is defined from -1 up to +1

Figure 58.3: Inputting the specific R-value

Figure 58.4: Inputting your own R-value.
As the surface roughness increases, the S-N curve (Woehler lines) moves to lower stress amplitudes, but the surface roughness alone is not the cause for this. The strength is much more affected by the detailed properties of the surface. In addition, despite similar surface characteristics and the same surface roughness, different processing procedures can cause different material internal stress states, resulting in S-N curves (Woehler lines) that differ from each other greatly.