Hi everyone (first post so please let me know if question needs improving)
I am creating a report which includes lots of boxplots and scatterplots. I am finding that the report is getting excessively long due to the large size of the graphs.
In places I have used par(mfrow=c(2,2)) where applicable, however in this case I am just displaying a single graph and would like to reduce its size by half, keeping the aspect ratio.
I am knitting the Markdown file to a pdf
I have created a reproducible example:
---
title: "test1"
output:
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(ggplot2)
NewData<-mtcars
```
The following graph shows the relationship between horsepower and rear axle ratio
```{r}
ggplot(NewData,aes(hp,drat))+geom_point()
```
Thanks in advance