So I have the table in the following working example.
I used the solution at Column and row padding in tables but still the text inside each cell is not centered vertically …
Besides, I wanted to give it a fancier look like in Beamer table drop shadow but I don't seem to be able to include \rowcolors{1}{RoyalBlue!20}{RoyalBlue!5}
when working with \multicolumn
, same for the drop shadow.
\documentclass[ignorenonframetext, xcolor={dvipsnames,table}]{beamer}
\mode<presentation> {
\usetheme{Berkeley}
\usecolortheme{dolphin}
\usepackage{multirow}
\usepackage{pbox}
}
\begin{document}
\begin{frame}
\begin{center}
{\small
\begin{tabular}{l|c|c|c|}
\multicolumn{1}{r}{}
& \multicolumn{1}{c}{\textbf{\pbox{20cm}{Tissue-specific\\penetrance}}}
& \multicolumn{1}{c}{\textbf{\pbox{20cm}{Ubiquitous\\penetrance}}}
& \multicolumn{1}{c}{}\\
\cline{2-4}
\textbf{\pbox{20cm}{Tissue-specific\\expression}}
& \textit{\pbox{20cm}{CLASS 1\\12 genes}}
& \textit{\pbox{20cm}{CLASS 4\\8 genes}}
& \textcolor{green!70!black}{20 genes}\\
\cline{2-4}
\textbf{\pbox{20cm}{Ubiquitous\\expression}}
& \textit{\pbox{20cm}{CLASS 3\\32 genes}}
& \textit{\pbox{20cm}{CLASS 2\\20 genes}}
& \textcolor{pink}{52 genes}\\
\cline{2-4}
\cline{2-4}
& \textcolor{red!70!black}{44 genes}
& \textcolor{RoyalBlue}{28 genes}
& \textbf{\pbox{20cm}{72 genes}}\\
\cline{2-4}
\end{tabular}
}
\end{center}
\end{frame}
\end{document}
Best Answer
I'd suggest "cals" tables:
The table looks good even without tuning:
If you want to experiment with row colors and height, change "iffalse" to "iftrue". I have no experience with drop shadows, therefore can't recommend anything.