I know how to put a number of plots side by side within a html output using Rmarkdown
{r maps, fig.cap = "Fig. Z - Maps", fig.show="hold", out.width="25%", fig.align = "center", echo = FALSE}
knitr::include_graphics("plots/X1.map.png")
knitr::include_graphics("plots/X2.map.png")
knitr::include_graphics("plots/X3.map.png")
knitr::include_graphics("plots/X4.map.png")
Each of these maps have been created and saved using tmap function, saving each map with the same height and width:
tmap_save(X1.map, "plots/X1.map.png", height = 4, width = 1.5)
However, when knitting the html document together the maps, although having the same widths have different heights.
Any help would be much appreciated.