Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with opencpu #12

Open
FinScience opened this issue Aug 29, 2017 · 2 comments
Open

Integration with opencpu #12

FinScience opened this issue Aug 29, 2017 · 2 comments

Comments

@FinScience
Copy link

Hi,
I am trying to create an opencpu app that would display the chordiagram created using chorddiag. Is there any way to do this. For static plots if I return print(plot1), it is working fine, but not for htmlwidgets objects.

Any help on this would be great.

@mattflor
Copy link
Owner

Sorry, I don't have any experience with the opencpu framework. Maybe you can use something like htmlwidgets::saveWidget() to save the chord diagram widget to HTML and then display this in your opencpu app?

@efotopoulou
Copy link

This is the way i did it ....if it helps...

mychord <- chorddiag::chorddiag(m, groupColors = groupColors, groupnamePadding = 20)
mychord_to_retunr <- htmlwidgets::saveWidget(mychord, file = "mychord.html")
return (mychord_to_retunr)

Then i got is as a rest opencpu response like this:
/ocpu/tmp/x0034c4ecd1d175/files/mychord.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants