Sharing your map
You map will know be publically available to anyone with a web browser via RPubs. You can get the URL
in the address bar of the browser window in which your map opens as soon as you click publish
. For example the URL for this document is: http://rpubs.com/pfrontiera/234119
.
You can copy and paste your URL into a blog post or another web page as an inline link to display your map in another context. For example, I would embed the following to link to this RPub document:
<iframe src="http://rpubs.com/pfrontiera/234119" width="90%" height="100%" scrolling="no"></iframe>
That works best if there is nothing in your RMarkdown dock except the map, which you can see in this example:
Another Way to Share
Now that’s not great but it is a start. If you want better control, you can:
Create a GitHub GIST account
Upload the HTML file that RStudio outputs when you click Knit HTML
to your GIST account
- Publish your new GIST by clicking
Create Public GIST
- Change the file name of your GIST to
index.html
. You can have more than one index.html
file on your GIST account.
- Take a look at the URL of your GIST, for example:
- Open that URL in
bl.ocks.org
to view it as a rendered web page.
As with most things R, there are many ways to share your work online. This doc shows a few options to get you started.
Last updated 12/9/2016