pagemap {pagemap}R Documentation

Mini Map of Page

Description

Create mini map for single web page.

Usage

pagemap(id, box_style = list(), ..., elementId = NULL)

Arguments

id

string id for canvas mini map. Default is 10 randomly generated letters.

box_style

a list of css propery of mini map box. If not provided, default values are used.

...

additional options passed to pagemap.

elementId

string id as a valid CSS element id for htmlwidgets.

See Also

Pagemap home page.

Examples

library(pagemap)
# Most basic usage
pagemap()

# Fix it’s position on the screen
pagemap(
  id = "mini_map",
  box_style = list(left = "5px", top = "10px")
)

# Style by providing a list of css property
pagemap(
  id = "mini_map",
  styles = list(
    "h1,h2,a,code" = "rgba(0, 0, 0, 0.10)",
    "img" = "rgba(0, 0, 0, 0.08)",
    "pre" = "rgba(0, 0, 0, 0.04)"
  )
)

[Package pagemap version 0.1.3 Index]