The day of the year can be calculated using yday from the lubridate package. This function does the same but, does it like TNC's version of the IHA software. They count days as if every year was leap year; every year has 366 days.
a date object that can be handled by the lubridate package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.