![]() hold: Hold all plots and output them at the end of a code chunk.asis: Show plots exactly in places where they were generated (as if the code were run in an R terminal).A numeric vector: In this case, the values are indices of (low-level) plots to keep.all: Keep all plots (low-level plot changes may produce new plots).high: Only keep high-level plots (merge low-level changes into high-level plots).For example, for LaTeX output, it can be 3in, or 8cm for HTML, it can be 300px. Depending on the output format, this option can take special values. Height of the plot in the output document, which can be different from its physical fig-height, i.e., plots can be scaled in the output document. However, any of the following unit identifiers can be used: px, cm, mm, in, inch and %, for example, 3in, 8cm, 300px or 50%. ![]() When used without a unit, the unit is assumed to be pixels. Width of the plot in the output document, which can be different from its physical fig-width, i.e., plots can be scaled in the output document. When fig-asp is specified, the height of a plot (the option fig-height) is calculated from fig-width * fig-asp. ![]() The aspect ratio of the plot, i.e., the ratio of height/width. A short caption is inserted in \caption, and usually displayed in the “List of Figures” of a PDF document.ĭefault output format for figures ( retina, png, jpeg, svg, or pdf) ![]() If fig-pos is false, then we don’t use any figure position specifier, which is sometimes necessary with custom figure environments (such as sidewaysfigure).Ī short caption (only used in LaTeX output). ```.Ĭomputational figure output that is accompanied by the code that produced it is given a default value of fig-pos="H" (so that the code and figure are not inordinately separated). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |