-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpdr06_ex1.Rmd
65 lines (52 loc) · 1.2 KB
/
pdr06_ex1.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
---
title: "Highcharter"
output:
flexdashboard::flex_dashboard:
logo: "https://analisemacro.com.br/wp-content/uploads/2021/11/rlogo.png"
favicon: "rlogo.png"
knit: (
function(inputFile, encoding) {
rmarkdown::render(
input = inputFile,
encoding = encoding,
output_file = 'index.html')
})
---
[R Logo](https://www.r-project.org/logo/) by The R Foundation is licensed under CC-BY-SA 4.0. Modifications to this picture include resizing.
```{r setup, include=FALSE}
library(highcharter)
library(forecast)
library(treemap)
library(flexdashboard)
```
Column
-------------------------------------
### Gráfico de colunas
```{r}
x <- c(rnorm(10000), rnorm(1000, 4, 0.5))
hchart(x)
```
Column
-------------------------------------
### Gráfico de linha
```{r}
airforecast <- forecast(
auto.arima(AirPassengers),
level = 95
)
hchart(airforecast)
```
### Mapa interativo
```{r}
data(GNI2014, package = "treemap")
hcmap(
"custom/world-robinson-lowres",
data = GNI2014,
value = "GNI",
joinBy = c("iso-a3", "iso3")
) %>%
hc_colorAxis(
stops = color_stops(colors = viridisLite::inferno(10, begin = 0.1)),
type = "logarithmic"
)
```