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.
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:
glimpse(data_htmlwidgets)
#> Observations: 6
#> Variables: 4
#> $ href <chr> "https://plot.ly/r", "https://rich-iannone.github.io/...
#> $ image <chr> "http://gallery.htmlwidgets.org/images/ropensci-plotl...
#> $ title <chr> "plotly", "DiagrammeR", "leaflet", "networkD3", "form...
#> $ subtitle <chr> "Carson Sievert", "Rich Iannone", "Joe Cheng", "Chris...Each row of the dataset is associated with an example in the gallery; the dataset has four columns:
href URL destination of linkimage URL for the preview imagetitle character string for the titlesubtitle character string for the subtitleThe gallerywidget() function is used to render the widget:
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.