Hi, I'm generating R Notebooks and have been frustrated by how the figures, by default, are generally low resolution. When I increase the resolution using the chunk options fig.width and fig.height, the resolution is increased but the fonts don't scale.
I figured I would try and recreate the image output from R4DS to see how it was possible for the author to generate images with a reasonable resolution. As you can see from the first figure in the 'graphics for communication' section, the image is 1344px by 830px.
If I take that same code, plop it into an R notebook, and preview I get an image that is 583x347. If I increase the figure width and height by using the chunk options fig.width and fig.height, I get a higher resolution image but the fonts don't scale.
Can anyone indicate how Hadley Wickham was able to create such high resolution images without affecting the fonts?
The .Rmd code I'm using is here: https://gist.github.com/adamribaudo/20833bb6907570866d021c2818de750b