-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.Rmd
62 lines (49 loc) · 2.58 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: github_document
always_allow_html: true
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
library(bslib)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# shinyMons <img src="man/figures/shinymons_hex.svg" width=200 align="right" alt="shinyMons hex sticker"/>
<!-- badges: start -->
[![CRAN status](https://www.r-pkg.org/badges/version/shinyMons)](https://cran.r-project.org/package=shinyMons)
[![R-CMD-check](https://github.com/DivadNojnarg/shinyMons/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/DivadNojnarg/shinyMons/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
> shiny app for pokemons
## Purpose of this App:
This app was designed for two reasons:
- propose something original for the upcoming [shiny contest](https://blog.rstudio.com/2019/01/07/first-shiny-contest/) event
- serve as a gallery for the RinteRface [tablerDash](https://github.com/RinteRface/tablerDash)
dashboard template
```{r basic-code, eval=TRUE, echo=FALSE}
card(
shinyMons:::create_app_link(shinyMons:::shinylive_links["inst/examples/shinylive/pokedex"], mode = "app"),
full_screen = TRUE,
style = "margin: 0 auto; float: none;"
)
```
## Original Data
The original data are taken from the amazing [pokeApi](https://pokeapi.co). I built my own data from what I found relevant in the API (see `data-waw` folder). Moreover, I chose to deal only with the first 151 pokemons (because I played with them as a child).
Such a restriction is actually not as straightforward as it seems to handle, since each element need to
belong to the first pokemon generation (while the API provides unfiltered data). There are features
that exist now but not in the first games (namely red/blue):
- eggs
- special objects
- day/night cycle
- mega evolutions
- ...
## App skeleton
This app is packaged into 11 shiny modules that tightly interact together to pass useful informations,
such as the currently selected pokemon. All outputs are mainly generated with the excellents [echarts4r](https://github.com/JohnCoene/echarts4r) and [visNetwork](https://datastorm-open.github.io/visNetwork/).
## Interface
This app is built on top of the Bootstrap 4 [tablerDash](https://github.com/RinteRface/tablerDash) template. Furthermore, it includes the pushbar.js library implementation by [John Coene](https://github.com/JohnCoene/pushbar). Combined together, this allows to develop clean templates, especially for mobile devices.
## Further projects
- Develop a fight system based on pokemon's stats