I use knit to convert my .Rhtml file to a .html file. I call the output of piece Q1:
Here comes the piece, it is basically a ggplot2 figure in a 2x2 layout.
library(ggplot2) myplot = list() for (i in 1:4){ x = 1:100 y = sample(100,100) data = data.frame(x=x,y=y) myplot[[i]] = ggplot(data,aes(x=x,y=y))+geom_point()+labs(title="bla")} do.call(grid.arrange,c(myplot,list(nrow=2,ncol =2)))
Now, looking at the received html file, I would like to include the following function: I would like to have a link (for example, to the database) when I click on the title of each plot. Is it possible?
thanks
source share