Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rte-antares-rpackage/leaflet.minicharts
Minicharts for dynamic leaflet maps
https://github.com/rte-antares-rpackage/leaflet.minicharts
chart dynamic-chart javascript leaflet leaflet-map leaflet-plugins leafletjs r
Last synced: 2 months ago
JSON representation
Minicharts for dynamic leaflet maps
- Host: GitHub
- URL: https://github.com/rte-antares-rpackage/leaflet.minicharts
- Owner: rte-antares-rpackage
- Created: 2017-04-07T13:23:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T01:43:00.000Z (over 1 year ago)
- Last Synced: 2024-04-14T20:00:45.366Z (10 months ago)
- Topics: chart, dynamic-chart, javascript, leaflet, leaflet-map, leaflet-plugins, leafletjs, r
- Language: R
- Homepage:
- Size: 10.8 MB
- Stars: 107
- Watchers: 10
- Forks: 20
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shiny-extensions - leaflet.minicharts - Add and modify small charts on the interactive map created with the leaflet package. (Visualization / Maps and Spatial Data)
- jimsghstars - rte-antares-rpackage/leaflet.minicharts - Minicharts for dynamic leaflet maps (R)
README
# leaflet.minicharts
> Minicharts for dynamic [{leaflet}](https://rstudio.github.io/leaflet/) maps
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/leaflet.minicharts)](https://cran.r-project.org/package=leaflet.minicharts)
[![CRAN Downloads Badge](https://cranlogs.r-pkg.org/badges/leaflet.minicharts)](https://cran.r-project.org/package=leaflet.minicharts)
[![Travis-CI Build Status](https://travis-ci.org/rte-antares-rpackage/leaflet.minicharts.svg?branch=master)](https://travis-ci.org/rte-antares-rpackage/leaflet.minicharts)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rte-antares-rpackage/leaflet.minicharts?branch=master&svg=true)](https://ci.appveyor.com/project/rte-antares-rpackage/leaflet-minicharts)
[![Coverage Status](https://img.shields.io/codecov/c/github/rte-antares-rpackage/leaflet.minicharts/master.svg)](https://codecov.io/github/rte-antares-rpackage/leaflet.minicharts?branch=master)For a few years now, it has become easy to create interactive maps with R thanks to the package `leaflet` by the Rstudio team. Nevertheless, it only provides only a few functions to create basic shapes on a map, so the information that can be represented on a single map is limited: if you have some data associated to some points, you can only represent at most two variables by drawing circles and changing their radius and color according to data.
`leaflet.minicharts` is an R package that provides two functions to add and update small charts on an interactive maps created with the package `leaflet`. These charts can be used to represent as many variables as desired associated to geographical points. Currently, three types of chart are supported: barcharts (the default), pie charts and polar area charts (with two variants: "polar-area" and "polar-radius", where values are represented respectively by the area or the radius of the slices).
Here are screenshots of sample outputs:
![](vignettes/piecharts.png)
![](vignettes/barcharts.png)
![](vignettes/bubblecharts.png)## Installation and usage
You can install the package from CRAN:
```r
install.packages("leaflet.minicharts")
```To see how simple it is to use this package, have a look at the [package vignette](https://cran.r-project.org/package=leaflet.minicharts/vignettes/introduction.html).
## Contributing
Contributions to the library are welcome and can be submitted in the form of pull requests to this repository:
https://github.com/rte-antares-rpackage/leaflet.minicharts
This package contains some javascript code. To modify it requires `npm` and `grunt`. First modify files in the `javascript` folder. Then in a terminal, run the following commands:
```
cd javascript
npm install
grunt build
```## License Information
Copyright 2015-2018 RTE (France)
* RTE: http://www.rte-france.com
This Source Code is subject to the terms of the GNU General Public License, version 2 or any higher version. If a copy of the GPL-v2 was not distributed with this file, You can obtain one at https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html.