First time here? Check out the FAQ!
answered 2021-09-12 08:18:04 +0100
You are seeing the numerical noise around 1.
Try
plot(f,-4,4,ymin=0,ymax=2)