Here is an example code where I try to display 4 tables, tables on the second row are too close from tables on the first row, is there any way I can separate them?
I would also like row names to all be aligned and centered, The last row name is never aligned with the other ones.
```{r, echo=FALSE, warning= FALSE}
ex <- data.frame(B=c(10,5,12,4),
W=c(20,2,6,7))
row.names(ex) <- c("D", "E","A","B")
```
```{r, echo=FALSE, warning=FALSE}
#| label: tbl-ConfusionMatrices
#| tbl-cap: "Confusion matrices for each tool with the confusion matrix for ROI 1 and the with combined ROIs"
#| tbl-subcap:
#| - "Tool K1"
#| - "Tool K2"
#| - "Tool K3"
#| - "Tool K3"
library(kableExtra)
library(knitr)
kable(ex)%>% pack_rows( index = c("ROI1" = 2, "ROIs"))
kable(ex)%>% pack_rows( index = c("ROI1" = 2, "ROIs"))
kable(ex)%>% pack_rows( index = c("ROI1" = 2, "ROIs"))
kable(ex)%>% pack_rows( index = c("ROI1" = 2, "ROIs"))
```
