[R] PNG File in R Markdown HTML
Shivi Bhatia
shivipmp82 at gmail.com
Tue Jan 10 14:57:01 CET 2017
Hi Team,
I am successfully able to add the company logo to the R markdown file using
the code below:
```{r, fig.width=3, fig.height=15,echo=FALSE, warning=FALSE, message=FALSE}
library(png)
library(grid)
img <- readPNG("D:/Shivi/R Project/Name.png")
grid.raster(img)
```
However the image gets displayed at the bottom of the html page. I have
tried deleting any empty space after this code but it does not help.
Request you to please advice.
Thanks, Shivi
[[alternative HTML version deleted]]
More information about the R-help
mailing list