I would like to create a figure containing subfigures and a caption to the side as shown below.
I have everything as shown except that the caption is below the subfigures instead of to the left of them. I am using the package subcaption with the subfigure command. I tried to use the package sidecap but subcaptions do not appear to work within an SCFigure.
I am using overleaf in case that is relevant.
My current markup:
\begin{figure}[]
\centering
\begin{subfigure}[]{0.15\linewidth}
\caption{}
\label{figure:my figure 1}
\includegraphics[width=\linewidth]{my figure 1.png}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.15\linewidth}
\caption{}
\label{figure:my figure 2}
\includegraphics[width=\linewidth]{my figure 2.png}
\end{subfigure}
\\
\vspace{0.5em}
\begin{subfigure}[]{0.15\linewidth}
\label{figure:my figure 3}
\includegraphics[width=\linewidth]{my figure 3.png}
\caption{}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.15\linewidth}
\label{figure:my figure 4}
\includegraphics[width=\linewidth]{my figure 4.png}
\caption{}
\end{subfigure}
\caption{A collection of related images}
\label{figure:my figure}
\end{figure}
Related questions:

