create_tml_img: Create Vertical HTML Timeline Widget with Images from a Data...

Description Usage Arguments Value

View source: R/cronologia.R

Description

Create Vertical HTML Timeline Widget with Images from a Data Frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
create_tml_img(
  df,
  smr,
  dsc,
  imgsrc,
  imgalt,
  smr_col = "white",
  smr_bgcol = "#002240",
  dsc_col = "#1D1D1D",
  dsc_bgcol = "#FFFFFF",
  dsc_size = "14px",
  imgheight = "150px",
  imgwidth = "150px",
  open = FALSE
)

Arguments

df

a data frame containing the necessary information.

smr

the column name that will be used as the summary component.

dsc

the column name that will be used as the description component.

imgsrc

the column name indicating the 'href' source of the images.

imgalt

the column name that will be used as 'alt' text for the images.

smr_col

text color for the summary component. Defaults to 'white'.

smr_bgcol

background-color for the summary component. Defaults to "#002240".

dsc_col

text color for the description component. Defaults to "#1D1D1D".

dsc_bgcol

background-color for the description component. Defaults to "#FFFFFF".

dsc_size

font size of the description component. Defaults to "14px".

imgheight

the height of the image. Defaults to "150px".

imgwidth

the width of the image. Defaults to "150px".

open

logical, whether to open by default the summary components. Default to FALSE

Value

A Vertical HTML Time Line Widget With Images


cronologia documentation built on April 23, 2021, 1:07 a.m.