[R] Plots in ioslides and R markdown

Duncan Murdoch
Sat, 25 Aug 2018 11:53:31 -0000

On 25/08/2018 6:21 AM, Patrick Connolly wrote:
> ---
> title: "Barking up the wrong tree"
> author: "Patrick Connolly"
> date: "`r format(Sys.time(), '%a %d/%m/%Y %H:%M')`"
> output:
>    ioslides_presentation: default
>    slidy_presentation: default
>    beamer_presentation: default
> ---
>
> ```{r global_options, echo=FALSE}
> knitr::opts_chunk$set(tidy=TRUE,
>                        warning=FALSE,
>                        message=FALSE,
>                        cache=FALSE,
>                        dpi = 300)

Drop the dpi setting and it will work fine.

Duncan Murdoch

>
> ```
> ## 6 different Regression Trees
>
> ```{r 6 different Regression Trees, echo = FALSE, messages=FALSE, fig.width
= 7, fig.height = 5}
>
>   par(mfrow = c(2, 3))
> plot(1:10)
> plot(12:4)
> plot(seq(0, 800))
> plot(-100:-900)
> plot(12:50)
> plot(90:54)
> ```