-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.Rmd
152 lines (141 loc) Β· 3 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!-- badges: start -->
[![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)
<!-- badges: end -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
warning = FALSE,
collapse = TRUE,
comment = "#>"
)
library(globe4r)
library(htmltools)
```
```{r, echo=FALSE}
br()
div(
class = "row",
div(
class = "col-md-4",
img(
src = "logo.png",
class = "img-responsive responsive-img"
)
),
div(
class = "col-md-8",
p(
"Interactive globes for R via",
tags$a(
"globe.gl.",
href = "https://github.com/vasturiano/globe.gl",
target = "_blank"
)
),
p("Create 3D globes:"),
tags$ul(
tags$li("bars"),
tags$li("choropleth (polygons)"),
tags$li("arcs"),
tags$li("hex bins"),
tags$li("labels")
),
p(
"globe4r ships with",
tags$a(
"chroma.js",
href = "https://vis4.net/chromajs/",
target = "_blank"
),
"to easily scale colors."
),
p(
tags$a(
tags$i(class = "fa fa-rocket"),
"Get Started",
class = "btn btn-primary",
href = "articles/get-started.html"
),
tags$a(
tags$i(class = "fa fa-desktop"),
"Shiny Demo",
class = "btn btn-default",
target = "_blank",
href = "https://shiny.john-coene.com/gdp-app"
)
)
)
)
br()
```
## Installation
You can install the globe4r from Github:
```r
# install.packages("remotes")
remotes::install_github("JohnCoene/globe4r")
```
## Examples
```{r, echo = FALSE}
div(
class = "row",
div(class = "col-md-4",
tags$a(
"Labels",
class = "btn btn-default",
href = "labels.html",
target = "_blank",
style = "width:100%;"
)
),
div(class = "col-md-4",
tags$a(
"Polygons",
class = "btn btn-default",
href = "choropleth.html",
target = "_blank",
style = "width:100%;"
)
),
div(class = "col-md-4",
tags$a(
"Paths",
class = "btn btn-default",
href = "paths.html",
target = "_blank",
style = "width:100%;"
)
)
)
br()
div(
class = "row",
div(class = "col-md-4",
tags$a(
"Bars",
class = "btn btn-default",
href = "bars.html",
target = "_blank",
style = "width:100%;"
)
),
div(class = "col-md-4",
tags$a(
"Arcs",
class = "btn btn-default",
href = "arcs.html",
target = "_blank",
style = "width:100%;"
)
),
div(class = "col-md-4",
tags$a(
"Hex",
class = "btn btn-default",
href = "hex.html",
target = "_blank",
style = "width:100%;"
)
)
)
```