I am trying to include an rpivotTable in my HTML report but it keeps overlapping the graph I have below.
This is an example code so that you can see that when you render Rmd to HTML it will overlap whatever is below.
library(tidyverse)
mt <- mtcars
rpivotTable::rpivotTable(mtcars, rows = mpg, columns = c(cyl, hp))
ggplot(mtcars, aes(mpg, cyl)) +
geom_bar(stat="identity")
I have tried using the height and width arguments with no success.
As the pivot table is interactive and can change in size, I would like the graph below to automatically make space to fit the pivot table.
Thanks for your help:)