View source: R/tbl_photo_key.R
tbl_photo_key | R Documentation |
gt
table (not working)Designed to work with the sfext::read_sf_exif
function. More information
on this approach here
https://elipousson.github.io/posts/2021-03-06-creating-a-key-map-for-photographs-with-r/
tbl_photo_key( data, height = 240, asp = 0.75, photo_col = "photo", title_col = "title", title_size = "large", title_align = "right", number = FALSE, orientation = NULL )
data |
sf object or data frame with photo column containing the file path or url for photos. |
height |
The height in pixels of image in table. |
asp |
Aspect ratio of image (width/height) |
photo_col |
Photo path/url column name. |
title_col |
Title/description column name. |
title_size |
Title text size, Default: 'large' |
title_align |
Title tex alignment, Default: 'right' |
number |
If |
orientation |
Orientation to filter by if data contains image_width and image_height columns. |
Function naming convention inspired by the gtsummary package https://www.danieldsjoberg.com/gtsummary/index.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.