Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johncoene/globe4r

🌎 Interactive globe visualisations
https://github.com/johncoene/globe4r

globe r rstats visualisation

Last synced: 10 days ago
JSON representation

🌎 Interactive globe visualisations

Awesome Lists containing this project

README

        

---
output:
github_document:
html_preview: false
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

[![Travis build status](https://travis-ci.org/JohnCoene/globe4r.svg?branch=master)](https://travis-ci.org/JohnCoene/globe4r)
[![Lifecycle: maturing](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/JohnCoene/globe4r?branch=master&svg=true)](https://ci.appveyor.com/project/JohnCoene/globe4r)

# globe4r

Interactive globes for R via [globe.gl](https://github.com/vasturiano/globe.gl).

Visit the [website](https://globe4r.john-coene.com) for more details.

1. bars
2. arcs
3. polygons
4. points
5. hex bin

Visit the website for the [full list of functions](https://globe4r.john-coene.com/reference/)

## Installation

You can install the globe4r from Github:

``` r
# install.packages("remotes")
remotes::install_github("JohnCoene/globe4r")
```

## Example

```r
library(globe4r)

data("population") # sample data

create_globe() %>% # initialise
globe_bars(
coords(lat, lon, altitude = value, color = value),
data = population
) %>%
scale_bars_altitude() %>%
scale_bars_color()
```