Dear R users. I'm currently making a report with knitr (RStudio) where I would like to plot a googleVis map. However, the map generated is an HTML file which I don't know how to integrate it in my report. So my question is how to include a map generated with googleVis in a PDF created with knitr/sweave. Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/googleVis-plot-and-knitr-sweave-tp4651341.html Sent from the R help mailing list archive at Nabble.com.
I'm not aware of the possibility of embedding google vis in PDF: https://developers.google.com/chart/interactive/docs/gallery I do not think everything has to live in PDF, otherwise what is the point of HTML/JS and web browsers? Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Nov 29, 2012 at 1:53 PM, Filoche <pmassicotte at hotmail.com> wrote:> Dear R users. > > I'm currently making a report with knitr (RStudio) where I would like to > plot a googleVis map. However, the map generated is an HTML file which I > don't know how to integrate it in my report. > > So my question is how to include a map generated with googleVis in a PDF > created with knitr/sweave. > > Regards, > Phil
On 11/29/2012 2:53 PM, Filoche wrote:> Dear R users. > > I'm currently making a report with knitr (RStudio) where I would like to > plot a googleVis map. However, the map generated is an HTML file which I > don't know how to integrate it in my report. > > So my question is how to include a map generated with googleVis in a PDF > created with knitr/sweave.Since others have told you that you can't do this directly, one recommended kludge is to use a static graph in the report, e.g., a screen capture from the HTML page, perhaps with a link to the 'live' version if you are putting this online. You can still show the googleVis code if you want using <<... eval=FALSE>> -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. & Chair, Quantitative Methods York University Voice: 416 736-2100 x66249 Fax: 416 736-5814 4700 Keele Street Web: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA