Create numbered photo key as a gt
table (not working)
tbl_photo_key.Rd
Designed to work with the overedge::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/
Usage
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
)
Arguments
- 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
TRUE
, add a number column that will by 20% of the width of the photo column; defaults toFALSE
. There may be a name conflict if the dataframe already contains a column named "rowid".- orientation
Orientation to filter by if data contains image_width and image_height columns.
Details
Function naming convention inspired by the gtsummary package https://www.danieldsjoberg.com/gtsummary/index.html