I am trying to vertically center some text in a cell in a table. I have found some similar examples that make use of \rotatebox. However, I can't seem to get vertical centering to work. Here is an example:
\def \figwidth {0.25\textwidth}
\setlength{\tabcolsep}{2pt}
\begin{figure*}[h]
\centering
\begin{tabular}{cccc}
\toprule
Velocity & s & q & r\\
\midrule
\rotatebox[origin=c]{90}{First row} &
\includegraphics[width=\figwidth]{example-image-a} &
\includegraphics[width=\figwidth]{example-image-b} &
\includegraphics[width=\figwidth]{example-image-c} \\
\rotatebox[origin=c]{90}{Second} &
\includegraphics[width=\figwidth]{example-image-a} &
\includegraphics[width=\figwidth]{example-image-b} &
\includegraphics[width=\figwidth]{example-image-c} \\
\bottomrule
\end{tabular}
\caption[EG]{Some example}
\label{tbl:eg}
\end{figure*}
My output looks like this:
In case it isn't clear, the issue is with where it says "First row" and "Second", which should be aligned vertically with the first and second rows of the table. Many thanks!


