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 need to learn how to get that code through knitr, which has its own mailing list. If you are lucky someone may have already made an rmarkdown template you could use or modify. You might try Googling "rmarkdown logo html". -- Sent from my phone. Please excuse my brevity.
On January 10, 2017 5:57:01 AM PST, Shivi Bhatia <shivipm...@gmail.com> wrote: >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]] > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.