I am having issues working with multirow in my table, I cannot figure out how to center a vertical row and how to color all the cells related to it.
I am trying to create this table:
This is the code that I am using to create the table above:
\usepackage{adjustbox}
\usepackage{multirow}
\usepackage[table, x11names]{xcolor}
\usepackage{array}
\newcolumntype{M}[1]{>{\raggedright\arraybackslash}m{#1}}
\begin{table}
\caption{Just a nice table}
\begin{center}
\renewcommand{\arraystretch}{5.5}
\begin{tabular}{|c|M{2.0cm}|M{2.0cm}|M{2.0cm}|M{2.0cm}|M{2.0cm}|M{2.0cm}|}
\hline
\multicolumn{2}{|M{2.0cm}|}{name A} & name B & name C & name D & name E & name F\\
\hline
\multirow{2}{*}{\parbox[t]{2mm}{\rotatebox[origin=c]{90}{Classification A1}}} & B & C & D & E & F & G\\
\cline{2-7}
& B & C & D & E & F & G\\
\cline{2-7}
& B & C & D & E & F & G\\
\hline
\multirow{2}{*}{\parbox[t]{2mm}{\rotatebox[origin=c]{90}{Classification A2}}}\cellcolor{blue!25} & B & C & D & E & F & G\\
\cline{2-7}
& B & C & D & E & F & G\\
\hline
\end{tabular}
\end{center}
\label{tab:multicol}
\end{table}
Probably I am messing it up using \arraystretch
regarding the centering problem, but I need to use it because the "Classification" name would go out of the table. Is there a different way to handle it?
The color problem I don't know if there is a function to deal with multiple rows without painting over the written part.
Another problem when I use the multirow is that a white or "ghost" row appears between the colored rows. As you can see below:
Any help would be very welcome.