I'm trying to switch from ioslide to xaringan. I'm not able to properly resize a ggplot image to make full screen or al least to occupy as much space as possible. I'm using both fig.height/width
and out.height/width
arguments but only one dimension change. There is a better way to resize an image?
this is the setup:
---
title: ""
author: ""
institute: ""
date: "`r Sys.Date()`"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
ratio: 16:9
---
#```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
knitr::opts_chunk$set(fig.retina=2)
library(Cairo)
library(cairoDevice)
library(tidyverse)
library(kableExtra)
#```
---
# Plot
#```{r echo=FALSE, out.height=450, out.width= 2000}
knitr::include_graphics("img/Rplot01.svg")
#```
I would like to expand the image as much as possible