rmarkdown chart loses gridlines

Any change you could ask this with a minimal REPRoducible EXample (reprex) that reproduces your issue?