Skip to contents

Explore an example, download its standalone HTML, or use its R script as a starting point for your own data. Every live demo below runs entirely in your browser. Downloaded HTML files work without R, a server, or an internet connection.

The images are static ggplot2 previews. Interactive viewers have their own controls and presentation. On a small screen, opening the demo directly gives it more room than an embedded frame.

Maps and change over time

Networks and relationships

Run an example yourself

Install offlineatlas, then run an example script in a dedicated output folder. The scripts use bundled data and replace their previous example exports.

library(offlineatlas)
dir.create("atlas-examples", showWarnings = FALSE)
setwd("atlas-examples")
source(system.file("examples", "gdp.R", package = "offlineatlas"))
browseURL("world-bank-gdp.html")

Each R code link above opens the complete script. The scripts are also installed with the package. For publication figures, see the static map script and static network script. Their PNG, PDF, and SVG outputs can be recreated locally. For example, compare the automatic network PNG with its vector PDF.

The tutorial explains how to adapt these examples. The function reference describes the available options.

A living example on the web

FDI Atlas is a related, more customized project. It shows how an atlas can become a public resource. For the standalone package exports, publishing can be as simple as putting the HTML file on a website. Everything embedded in that file is available to its viewers.

Full source notes and data reuse terms appear inside the exported viewers and in the package’s bundled notices. Downloaded demos retain those notices.