The goal of gallerywidget is to provide you with the means to create a gallery of images, each of which contains a hyperlink, and may contain a title and a subtitle. The inspiration for this gallery tool is taken from Mike Bostock’s blocks website, as well as the Vega-Lite website.

Installation

This package is not yet on CRAN; but you can install it from GitHub:

Example

This package contains a single function, gallerywidget(), and a single sample-dataset, data_htmlwidgets.

The data_htmlwidgets dataset was built using examples from the htmlwidgets gallery:

Each row of the dataset is associated with an example in the gallery; the dataset has four columns:

  • href URL destination of link
  • image URL for the preview image
  • title character string for the title
  • subtitle character string for the subtitle

The gallerywidget() function is used to render the widget:

gallerywidget(data_htmlwidgets)

Acknowledgements

As mentioned above, this work is inspired by the galleries for from Mike Bostock’s blocks website, as well as the Vega-Lite website. The css is a mix of the css from both of these sites - I trust that it is cool with all involved that their code is repurposed in this fashion.