I did with four diodes as practical but got 'DC sine wave' as an output haha What kind of simulation it is? How to simulate it? I used 7805 to get pure DC without such sine (or ripple) here but got same sine.
Either that or use waveform arithmetic to plot the voltage across R. Plot [V(top-node) - V(bottom-node)] where top-node and bottom-node are the node names on either side of R in your circuit.