Re: [R] PNG File in R Markdown HTML

2017-01-10 Thread Jeff Newmiller
Someone here may have an answer for you, but in general to solve this you need to use CSS which implies you also need to understand HTML, and neither of these subjects are on topic here (where the topic is the R language). Once you know what you want the output of knitr to look like then you ne

[R] PNG File in R Markdown HTML

2017-01-10 Thread Shivi Bhatia
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 di