I made the following plot in my Rmarkdown file, and render it using Xaringan.
---
title: "myTitle"
output:
xaringan::moon_reader:
css: ["default", "kunoichi", "ninjutsu", "metropolis-fonts"]
lib_dir: libs
chakra: libs/remark-latest.min.js
seal: false
nature:
countIncrementalSlides: false
ratio: '16:9'
---
# Two pretty gaussians
## and a few vertical lines
```{r, echo=FALSE, message=FALSE, warning=FALSE}
library(cowplot)
ggplot(data = data.frame(x = c(-3, 3)), aes(x)) +
stat_function(fun = dnorm, n = 101, args = list(mean = 1, sd = 1)) +
stat_function(fun = dnorm, n = 101, args = list(mean = -1, sd = 1)) +
geom_vline(xintercept = 0, colour="black", linetype = "solid") +
geom_vline(xintercept = c(-1.5,1.5), colour="black", linetype = "longdash") +
ylab("Density") + xlab("\'Internal Signal\'") +
scale_y_continuous(breaks = NULL)
```
This results in the following presentation. I just want to make the plot smaller, without the indirect step of having to save it as an image, then calling it and scaling it.
Is there a way?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)