Skip to content

Commit

Permalink
opt mvd to yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkunst committed Aug 12, 2022
1 parent a099f2f commit 6573f2c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
1 change: 0 additions & 1 deletion vignettes/motion.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ $(document).ready(function(){

```{r, include=FALSE}
library(highcharter)
knitr::opts_chunk$set(message = FALSE, warning = FALSE, out.width="100%")
options(highcharter.theme = hc_theme_hcrt(tooltip = list(valueDecimals = 2)))
options(download.file.method = "libcurl")
```
Expand Down
4 changes: 1 addition & 3 deletions vignettes/shiny.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ $(document).ready(function(){
</script>

```{r, include=FALSE}
knitr::opts_chunk$set(message = FALSE, warning = FALSE, out.width="100%", eval = FALSE)
library(highcharter)
options(highcharter.theme = hc_theme_hcrt(tooltip = list(valueDecimals = 2)))
```

Let's check some examples!



```{r, include=FALSE}
knitr::opts_chunk$set(fig.align = "center")
Expand Down
26 changes: 19 additions & 7 deletions vignettes/showcase.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ $(document).ready(function(){
</script>

```{r, include=FALSE}
knitr::opts_chunk$set(message = FALSE, warning = FALSE, out.width="100%")
library(highcharter)
options(highcharter.theme = hc_theme_hcrt(tooltip = list(valueDecimals = 2)))
```
Expand All @@ -38,7 +37,7 @@ highcharter can do in terms of customization and design.
> This is a bar graph describing my favorite pies including a pie chart describing my favorite bars.
> - _Marshall Eriksen_
```{r bar}
```{r bar, echo=FALSE}
data(favorite_bars)
data(favorite_pies)
Expand Down Expand Up @@ -105,10 +104,13 @@ highchart() |>
)
```

```{r bar, eval=FALSE}
```


## Pokemon

```{r pokemon}
```{r pokemon, echo=FALSE}
library(dplyr)
data(pokemon)
Expand Down Expand Up @@ -173,12 +175,14 @@ hchart(
hc_size(height = 700)
```

```{r pokemon, eval=FALSE}
```

## Weathers Radials

Example inspired by http://weather-radials.com/.

```{r weather}
```{r weather, echo=FALSE}
library(highcharter)
data(weather)
Expand Down Expand Up @@ -224,11 +228,14 @@ hchart(
)
```

```{r weather, eval=FALSE}
```

## Stars

Inspired by Nadieh Bremer's [block](http://bl.ocks.org/nbremer/eb0d1fd4118b731d069e2ff98dfadc47).

```{r stars}
```{r stars, echo=FALSE}
data(stars)
colors <- c(
Expand Down Expand Up @@ -289,11 +296,14 @@ hchart(
)
```

```{r stars, eval=FALSE}
```

## The Impact of Vaccines

From [WSJ graphic: Battling Infectious Diseases in the 20th Century](http://graphics.wsj.com/infectious-diseases-and-vaccines/):

```{r vaccines}
```{r vaccines, echo=FALSE}
data(vaccines)
fntltp <- JS("function(){
Expand Down Expand Up @@ -349,6 +359,8 @@ hchart(
align = "left",
valueDecimals = 0
) |>
hc_size(height = 1000)
hc_size(height = 900)
```

```{r vaccines, eval=FALSE}
```
1 change: 0 additions & 1 deletion vignettes/stock.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ $(document).ready(function(){

```{r, include=FALSE}
library(highcharter)
knitr::opts_chunk$set(message = FALSE, warning = FALSE, out.width="100%")
options(highcharter.theme = hc_theme_hcrt(tooltip = list(valueDecimals = 2)))
```

Expand Down
1 change: 0 additions & 1 deletion vignettes/themes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ $(document).ready(function(){
</script>

```{r, include=FALSE}
knitr::opts_chunk$set(message = FALSE, warning = FALSE, out.width="100%")
library(highcharter)
library(dplyr)
library(purrr)
Expand Down

0 comments on commit 6573f2c

Please sign in to comment.