Reputation: 313
I've exported 3 figures from R studio (in .png). How can I vertically align them on one page using latex? That's my attempt
\documentclass[11pt,fleqn,a4paper]{article}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
\begin{document}
\begin{figure}[htp]
\subfloat[Germany, sectors C26 to C30]{%
\includegraphics[clip,width=0.5\columnwidth]{Images/deu.png}%
}
\subfloat[Italy, sectors C29-C30]{%
\includegraphics[clip,width=0.5\columnwidth]{Images/ITA.png}%
}
\subfloat[United States, sectors C29-C30]{%
\includegraphics[clip,width=0.5\columnwidth]{Images/USA.png}%
}
\caption{Offshoring level. \\Source: Elaborated data from WIOT and SEA tables (2016).}
\end{figure}
\end{document}
Upvotes: 1
Views: 6423
Reputation: 38783
To get your image one below each other, insert an empty line between each \subfloat
. This empty line will insert a new paragraph:
\documentclass[11pt,fleqn,a4paper]{article}
\usepackage{graphicx}
\usepackage[caption=false]{subfig}
\begin{document}
\begin{figure}[htp]
\centering
\subfloat[Germany, sectors C26 to C30]{%
\includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}
\subfloat[Italy, sectors C29-C30]{%
\includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}
\subfloat[United States, sectors C29-C30]{%
\includegraphics[clip,width=0.5\columnwidth]{example-image-duck}%
}
\caption{Offshoring level. \\Source: Elaborated data from WIOT and SEA tables (2016).}
\end{figure}
\end{document}
Upvotes: 3