[R] Produce HTML reference in knitr using rmd
AlexPiche
alexandre.piche at mail.mcgill.ca
Thu Jun 20 10:04:35 CEST 2013
Hello guys,
I'm new to knitr and to R in general. I'm using RStudio and knitr, both the
latest version.
I am trying to produce an html page with multiple graph, which has a url
reference to each of them that bring us lower on the page. For those produce
separately it is pretty easy, since I just include the html location like I
did for graph 1.
But in a loop, I am struggling to reference them. I'm not sure where to
start, I took a look to option like fig.path and check a lot of post in the
forum, but I haven't been able to figure it out.
<p style="font-size:16px; text-align:center">
Lightpt <#location1> Lightb <#location2> LightbT <#location3>
Graph 4 <#location4>
</p>
graph 1
```{r, include=FALSE}
plot <- function(cCode, model = "y", years = 3) {
CairoPNG(paste(cCode, ".png", sep = ""), width=600, wheigth=675)
lapply(1:ncol(pcmat), function(x) {
...
})
dev.off()}
```
Thank you for your time,
Alex
--
View this message in context: http://r.789695.n4.nabble.com/Produce-HTML-reference-in-knitr-using-rmd-tp4669954.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list