subfigure

Include figure labels in R markdown for side by side plots

柔情痞子 提交于 2019-12-25 01:19:02
问题 In my rmarkdown document, I want to include plots side by side to save space. For example, I want to include: plot(rnorm(100)) hist(runif(100)) or plot(rnorm(100)) hist(runif(100)) I don't really care if there is one caption for both subplots or one caption for each subplot. I just really want to include figures side by side and have some way to refer to them (Figure 1, etc). Does anyone have suggestions? I have this in my header: header-includes: - \usepackage{subfig} When I don't have "fig

Control font size in graphics in LaTeX when scaling in minipage/subfig?

假装没事ソ 提交于 2019-12-20 20:16:09
问题 I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in general so as to make font sizing invariant to scaling? Ideally I'd like to be able to manually specify a font size per graphic or for all graphics or subfig/minipage environments? Here is an example of the usage as suggested. Thanks for the help.

Control font size in graphics in LaTeX when scaling in minipage/subfig?

孤者浪人 提交于 2019-12-03 07:58:14
I am using pgf/tikz graphics and I'm wondering how one can control the scaling of font sizes in the graphics when using them in minipage/subfig environments? Is there a way to manually set a permanent font size for pgf/tikz graphics or in latex in general so as to make font sizing invariant to scaling? Ideally I'd like to be able to manually specify a font size per graphic or for all graphics or subfig/minipage environments? Here is an example of the usage as suggested. Thanks for the help. \begin{figure}[h] \centering \subfloat[Graph 1]{ \begin{minipage}[h]{0.7\linewidth} \centering

Subfigures or Subcaptions with knitr?

允我心安 提交于 2019-11-27 04:04:56
Is it possible to produce subfigures (with associated subcaptions) using knitr? Here is a minimal working example: \documentclass{article} \begin{document} <<echo = FALSE, fig.cap = c("Some numbers.", "Some more numbers."), out.width = "0.5\\textwidth", fig.align = "center">>= plot(1:10) plot(30:100) @ \end{document} This results in two figures labelled Figure 1 and Figure 2 with captions as defined (respectively). But I want them to be labelled "Figure 1a" and "Figure 1b", as you can do with the subcaption LaTeX package. I know there is a knitr options "fig.env", but this doesn't solve it (at

Subfigures or Subcaptions with knitr?

淺唱寂寞╮ 提交于 2019-11-26 11:02:41
问题 Is it possible to produce subfigures (with associated subcaptions) using knitr? Here is a minimal working example: \\documentclass{article} \\begin{document} <<echo = FALSE, fig.cap = c(\"Some numbers.\", \"Some more numbers.\"), out.width = \"0.5\\\\textwidth\", fig.align = \"center\">>= plot(1:10) plot(30:100) @ \\end{document} This results in two figures labelled Figure 1 and Figure 2 with captions as defined (respectively). But I want them to be labelled \"Figure 1a\" and \"Figure 1b\",