dygraphs icon indicating copy to clipboard operation
dygraphs copied to clipboard

Dygraphs in loop in RMarkdown

Open gunjanthesystem opened this issue 9 years ago • 4 comments

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document, seems like an issue (Similar: http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.

gunjanthesystem avatar Jun 29 '15 14:06 gunjanthesystem

Yes, this is a limitation of htmlwidgets (upon which dygraphs is based). We have a PR in htmlwidgets pending that should address this issue: https://github.com/ramnathv/htmlwidgets/pull/110

On Mon, Jun 29, 2015 at 4:16 PM, gunjanthesystem [email protected] wrote:

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document, seems like an issue (Similar: http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.

— Reply to this email directly or view it on GitHub https://github.com/rstudio/dygraphs/issues/64.

jjallaire avatar Jun 29 '15 14:06 jjallaire

Is this the same reason that zero plots are displayed when I "Source" some linear code in which there are a number of Dygraph plots created?

DrNickBailey avatar Dec 01 '15 09:12 DrNickBailey

You need source with echo = TRUE in order for the dygraphs to be printed during the source.

On Mon, Jun 29, 2015 at 10:43 AM, JJ Allaire [email protected] wrote:

Yes, this is a limitation of htmlwidgets (upon which dygraphs is based). We have a PR in htmlwidgets pending that should address this issue: https://github.com/ramnathv/htmlwidgets/pull/110

On Mon, Jun 29, 2015 at 4:16 PM, gunjanthesystem <[email protected]

wrote:

Hi,

I am not able to produce dygraphs in for loop inside RMarkdown document, seems like an issue (Similar: http://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r/31117554#31117554)

Kindly look into it and thanks for this package.

— Reply to this email directly or view it on GitHub https://github.com/rstudio/dygraphs/issues/64.

jjallaire avatar Dec 01 '15 12:12 jjallaire

I have posted an answer to your question on SO: http://stackoverflow.com/a/35235069/559676

yihui avatar Feb 05 '16 23:02 yihui