The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
This is an R package that provides support for pagemap
as a htmlwidgets
.
Quickly and easily add a mini map to your rmarkdown html
documents. See a demonstration here.
Note: To distinguish it from the original project
pagemap
, the name of this project ispagemapR
, but the package name ispagemap
.
install.packages("pagemap")
Or use devtools
to install the latest development version.
# install.packages("devtools")
devtools::install_github("swsoyee/pagemapR")
It’s very simple to use.
library(pagemap)
pagemap()
You could fix it’s position on the screen and style by providing a list
of css property.
pagemap(
id = "mini_map",
box_style = list(left = "5px", top = "10px")
)
You could also customize the internal style of the mini map through the API provided by pagemap
.
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)"
)
)
Or add a pagemap for your Shiny app:
if (interactive()) {
shinyApp(
ui = fluidPage(pagemapOutput("pagemap")),
server = function(input, output) {
output$pagemap <- renderPagemap(pagemap())
}
)
}
This package is thanks to the work done by Lars Jung (https://github.com/lrsjng), the author of the original Javascript package pagemap
. Also, thanks should also go to Ramnath Vaidyanathan, Kenton Russell, and RStudio, Inc. for the amazing work on create htmlwigets
package. The hex sticker of pagemap
is produced by hexSticker
and ggplot2
, so special thanks goes to the Guangchuang YU (https://guangchuangyu.github.io) and the ggplot2
development team.
You are welcome to:
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.