Augmented Reality in R.

Installation

# install.packages("devtools")
devtools::install_github("JohnCoene/arframer")

Or you can install all packages and components at once with vrr, Virtual Reality in R (with another R):

# install.packages("devtools")
devtools::install_github("JohnCoene/vrrr")

Basic Example

Point your camera to a hiro marker.

library(aframer)
library(arframer)

browse_aframe(
  ar_scene(
    a_box(
      position = "0 0.5 0",
      material = "opacity: 0.5;"
    ),
    ar_marker_camera(
      preset = "hiro"
    )
  )
)

Hit the button below to view the output of the above, you’ll have to point your camera to hiro marker.

Demo

Extensive Example

The augmented version of the World Economic Forum’s Transformation Maps.

Transformation Maps are the World Economic Forum’s dynamic knowledge tool. They help users to explore and make sense of the complex and interlinked forces that are transforming economies, industries and global issues. The maps present insights written by experts along with machine-curated content. Together, this allows users to visualise and understand more than 120 topics and the connections and inter-dependencies between them, helping in turn to support more informed decision-making by leaders.

Augmented Maps