Exporting plot error

Hello all,

I am currently trying to export a 4x4 subplots matrix layout using RStudio and I am facing an issue. My problem is that despite the fact that I can see all the subplots corretly into RStudio, when I try to export them in PDF, only the first subplot is exported. This issue doesn't happen if I export in other formats, such as PNG.

This is a strange thing to happen. For additional information, I am using MacOS. I don't know if this may have an influence on the problem.

I would greatly appreciate if anyone could help me or point me in the right direction.

Thank you in advance for any help.

Provide a reprex? (see the FAQ).