I have an Rmarkdown file that generates a html file with a lot of plots in different tabs. Some of the plots (in different tabs) have a lot of values on the x-axis (for categorical variables). When I plot these objects individually in RStudio, I can click on the zoom button in RStudio, and the window that pops up will adjust to the width of the plot somehow, so I can see all the values on the x-axis clearly. In my report, on the other hand, all the categorical values on the x-axis are crammed together. I need to fix this, either using a slider of some sort, or to be able to mimic the zoom button in RStudio.
I tried following the answer here:
Zoom function in rmarkdown html plot
, but it does not adjust the image. It just blows up an already blurry image / or an image with already crammed up x-axis values.