Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Choosing Dimensions

Raw

\includegraphics[width=\textwidth]{figures/onepager/knitr:example_figure_height-1}

Often a bit of trial and error is required to get the dimensions right. Notice though that increasing the fig.width= as we did for the previous plot, and/or increasing the fig.height=, effectively also reduces the font size. Actually, the font size remains constant whilst the figure grows (or shrinks) in size. Sometimes it is better to reduce the fig.width or fig.height to retain a good sized font.

The above plot was generated with the following knitr options.

<<myfigure, echo=FALSE, fig.height=3.5>>=
... R code ...
@


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.