https://github.com/JohnCoene/globe4r
🌎 Interactive globe visualisations
https://github.com/JohnCoene/globe4r
globe r rstats visualisation
Last synced: over 1 year ago
JSON representation
🌎 Interactive globe visualisations
- Host: GitHub
- URL: https://github.com/JohnCoene/globe4r
- Owner: JohnCoene
- License: other
- Created: 2019-08-29T22:43:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T16:08:08.000Z (over 6 years ago)
- Last Synced: 2025-03-18T12:01:46.067Z (over 1 year ago)
- Topics: globe, r, rstats, visualisation
- Language: HTML
- Homepage: https://globe4r.john-coene.com
- Size: 8.32 MB
- Stars: 56
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- awesome-r-dataviz - globe4r - Interactive globe visualisations. (Spatial Visualization / Miscellaneous)
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%"
)
```
[](https://travis-ci.org/JohnCoene/globe4r)
[](https://www.tidyverse.org/lifecycle/#maturing)
[](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()
```