ggplot2 - R Markdown, ##Null appearing under my chart grid -


i'm having issue ##null showing under chart grid. charts displaying perfectly. below code, used same sample data each graph because aspect important.

```{r include=true, echo=false, message=false, warning=false, fig.height=4.5, fig.width=10} library(ggplot2) ch1 <- ggplot(mtcars, aes(mpg, wgt)) +        geom_point(shape=22, size=3.5)  +         geom_smooth(method=lm, se=false +         ggtitle ("selected 1-5y offerings maturity")  ch2 <-ggplot(mtcars, aes(mpg, wgt)) +       geom_point(shape=1) +       geom_smooth(method=lm) +        ggtitle("all offerings 1-5y")        multiplot(ch1,ch2, cols=2) ``` 

i put 'multiplot' link code below if wanted know was. http://www.cookbook-r.com/graphs/multiple_graphs_on_one_page_(ggplot2)/

**any ideas on how rid of ##null in rmarkdown html output shows if not returning something...

**********solved********** have results='hide'. take away.

add results='hide' code chunk options , take away ##null, or results matter. code below:

```{r include=true, echo=false, results='hide' message=false, warning=false, fig.height=4.5, fig.width=10}  library(ggplot2)     ch1 <- ggplot(mtcars, aes(mpg, wgt)) +            geom_point(shape=22, size=3.5)  +             geom_smooth(method=lm, se=false +             ggtitle ("selected 1-5y offerings maturity")      ch2 <-ggplot(mtcars, aes(mpg, wgt)) +           geom_point(shape=1) +           geom_smooth(method=lm) +            ggtitle("all offerings 1-5y")        multiplot(ch1,ch2, cols=2) ``` 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -