Skip to content

Commit

Permalink
CRAN changes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Jun 7, 2022
1 parent e6b6397 commit 47f247c
Show file tree
Hide file tree
Showing 24 changed files with 64 additions and 56 deletions.
8 changes: 4 additions & 4 deletions R/leaf_sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ leaf_sf <- function(data,

#colour
pal <- pal[1]

#basemap
if (shiny == FALSE) {
if(basemap == "light") basemap_name <- "CartoDB.PositronNoLabels"
Expand All @@ -86,7 +86,7 @@ leaf_sf <- function(data,
}

popup_data <- popup_data %>%
dplyr::mutate_if(.predicate = is.numeric, .funs = popup_numeric_format)
dplyr::mutate_if(.predicate = is.numeric, .funs = popup_numeric_format)

popup <- leafpop::popupTable(popup_data, zcol = 1:ncol(popup_data) - 1, row.numbers = FALSE, feature.id = FALSE)
}
Expand Down Expand Up @@ -336,7 +336,7 @@ leaf_sf_col <- function(data,
col_var <- rlang::enquo(col_var)
label_var <- rlang::enquo(label_var)
if (is.null(rlang::get_expr(label_var))) label_var <- col_var

#na's
if (col_na_rm == TRUE) {
data <- data %>%
Expand All @@ -350,7 +350,7 @@ leaf_sf_col <- function(data,
dplyr::select(!!label_var) %>%
dplyr::mutate_if(.predicate = is.numeric, .funs = label_numeric_format) %>%
dplyr::pull(!!label_var)

#logical to factor
if (is.logical(col_var_vctr)) {
data <- data %>%
Expand Down
5 changes: 2 additions & 3 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,11 @@ reference:
- '`leaf_stars`'
- '`leaf_stars_col`'
- '`mutate_text`'
- '`pal_d3_reorder`'
- '`pal_d3_mix`'
- '`pal_na`'
- '`pal_viridis_reorder`'
- '`pal_viridis_mix`'
- '`plotly_camera`'
- '`plotly_col_legend`'
- '`shiny_demo`'
- '`summarise_boxplot_outliers`'
- '`summarise_boxplot_stats`'

Expand Down
2 changes: 1 addition & 1 deletion docs/articles/colour.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions docs/articles/ggplotly.html

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/articles/leaflet.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/articles/scales.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/articles/shiny.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/articles/simplevis.html

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions docs/articles/themes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ articles:
shiny: shiny.html
simplevis: simplevis.html
themes: themes.html
last_built: 2022-06-04T00:55Z
last_built: 2022-06-07T01:45Z
urls:
reference: https://statisticsnz.github.io/simplevis/reference
article: https://statisticsnz.github.io/simplevis/articles
Expand Down
Binary file modified docs/reference/gg_point_col_facet-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/gg_sf_col_facet-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/gg_violin_facet-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/reference/leaf_basemap.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/reference/mutate_text.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/reference/plotly_camera.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/reference/plotly_col_legend.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vignettes/leaflet.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set.seed(123456789)

### Overview

[leaflet](https://rstudio.github.io/leaflet/) is a library that provides beautiful html widget maps. This allow use of basemaps, and therefore the ability to zoom in on features with the context that these provide. simplevis provides wrapper functions to map `sf` and `stars` objects. Arguments in these have been aligned to ggplot terminology to make things simple for the user.
[{leaflet}](https://rstudio.github.io/leaflet/) is a library that provides beautiful html widget maps. This allow use of basemaps, and therefore the ability to zoom in on features with the context that these provide. {simplevis} provides wrapper functions to map `sf` and `stars` objects. Arguments in these have been aligned to {ggplot2} terminology to make things simple for the user.

For the sf functions:

Expand Down
2 changes: 1 addition & 1 deletion vignettes/scales.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ gg_hbar(plot_data,

For other functions, you will need to reorder the relevant variables as you want.

The `tidytext` package provides a method for reordering within facets.
The {tidytext} package provides a method for reordering within facets.

```{r}
plot_data <- penguins %>%
Expand Down
2 changes: 1 addition & 1 deletion vignettes/shiny.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set.seed(123456789)

### Working with quoted inputs

In [shiny](https://shiny.rstudio.com/), it is often easier to work with quoted variables. For {ggplot2} wrapper function, wrap the variables in `!!sym`, as shown below.
In [{shiny}](https://shiny.rstudio.com/), it is often easier to work with quoted variables. For {ggplot2} wrapper function, wrap the variables in `!!sym`, as shown below.

```{r}
gg_point_col(penguins,
Expand Down
2 changes: 1 addition & 1 deletion vignettes/simplevis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ leaf_sf_col(example_point,
col_var = trend_category)
```

Refer to the [{leaflet}](https://StatisticsNZ.github.io/simplevis/articles/{leaflet}.html) article for further information.
Refer to the [{leaflet}](https://StatisticsNZ.github.io/simplevis/articles/leaflet.html) article for further information.

### Extending {simplevis}

Expand Down
2 changes: 1 addition & 1 deletion vignettes/themes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ library(palmerpenguins)
set.seed(123456789)
```

All plots have the same default undelying `{simplevis}` themes.
All plots have the same default undelying {simplevis} themes.

```{r}
gg_point_col(penguins,
Expand Down

0 comments on commit 47f247c

Please sign in to comment.