Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206316

Plots (ggplot2) in Rmarkdown PDF cropped

$
0
0

Within R I use the ggplot2 plotting library to create plots. I output a bunch of them and also print \n\n in between them such that they become their own paragraph in the PDF (via LaTeX). Lately (new R version, I think) the plots started to get cropped in this way:

enter image description here

The title and the legend are not completely visible, and I do not get why this happens. I am using R 3.6.1 with ggplot2 3.2.1 on Fedora 31. Is there some way to make them readable again?


Viewing all articles
Browse latest Browse all 206316

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>