Introduction
This article describes how to add an interactive R Visualization to a blog in under 30 seconds.
This particular example doesn't mean anything, but the purpose of my post here is just to show the technology. The total time to set this visualization up and include it on this blog was about 30 seconds.
Requirements
A Displayr document
Method
Seven steps to include your interactive R visualization in a blog
Step 1: Open this example in Displayr.
Step 2: In Displayr, click Calculate > Custom Code.
Step 3: Paste your R Code into Displayr or the code I used is below. If you do not have this prepared, it will take a lot longer than 30 seconds. 😉 A good place to start looking for examples is www.htmlwidgets.org. If you want to use a package that is not in Displayr, just send us an email on support@displayr.com, and we typically add it in a few days.
Step 4: Publish > Embed Object > Code Snippet.
Step 5: Copy the HTML snippet (i.e., <script src=…).
Step 6: Insert the HTML snippet into your page. For example, to do this in WordPress, just click on the Text tab and paste the code in.
Step 7: Publish your blog!
See Also
How to Embed Outputs in Web Pages
Comments
0 comments
Article is closed for comments.