View source: R/gt_img_circle.R
gt_img_circle | R Documentation |
Create circular border around an image
gt_img_circle(
gt_object,
column,
height = 25,
border_color = "black",
border_weight = 1.5
)
gt_object |
An existing gt object |
column |
The column to apply the transformation to |
height |
A number indicating the height of the image in pixels. |
border_color |
The color of the circular border, can either be a single value ie ( |
border_weight |
A number indicating the weight of the border in pixels. |
a gt object
library(gt) gt_img_tab <- dplyr::tibble( x = 1:4, names = c("Rich Iannone", "Katie Masiello", "Tom Mock","Hadley Wickham"), img = c( "https://pbs.twimg.com/profile_images/961326215792533504/Ih6EsvtF_400x400.jpg", "https://pbs.twimg.com/profile_images/1471188460220260354/rHhoIXkZ_400x400.jpg", "https://pbs.twimg.com/profile_images/1467219661121064965/Lfondr9M_400x400.jpg", "https://pbs.twimg.com/profile_images/905186381995147264/7zKAG5sY_400x400.jpg" ) ) %>% gt() %>% gt_img_circle(img)
2-15
Other Utilities:
add_text_img()
,
fa_icon_repeat()
,
fmt_pad_num()
,
fmt_pct_extra()
,
fmt_symbol_first()
,
generate_df()
,
gt_add_divider()
,
gt_badge()
,
gt_double_table()
,
gt_duplicate_column()
,
gt_fa_column()
,
gt_fa_rank_change()
,
gt_fa_rating()
,
gt_fa_repeats()
,
gt_highlight_cols()
,
gt_highlight_rows()
,
gt_img_border()
,
gt_img_multi_rows()
,
gt_img_rows()
,
gt_index()
,
gt_merge_stack_color()
,
gt_merge_stack()
,
gt_two_column_layout()
,
gtsave_extra()
,
img_header()
,
pad_fn()
,
tab_style_by_grp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.