Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JohnCoene/globe4r
🌎 Interactive globe visualisations
https://github.com/JohnCoene/globe4r
globe r rstats visualisation
Last synced: 3 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T16:08:08.000Z (almost 5 years ago)
- Last Synced: 2024-10-28T15:11:02.827Z (10 days ago)
- Topics: globe, r, rstats, visualisation
- Language: HTML
- Homepage: https://globe4r.john-coene.com
- Size: 8.32 MB
- Stars: 55
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
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%"
)
```[![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 binVisit 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()
```