Skip to content

Commit

Permalink
fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Oct 2, 2023
1 parent 370da64 commit 023ac2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ First, thanks for considering a contribution! I hope to make this package a comm
for us all to gain from and won't be able to do that without your help!

1) Contributions should be thoroughly tested with [`testthat`](https://testthat.r-lib.org/).
2) Code style should attempt to follow the [`tidyverse` style guide.](https://style.`tidyverse`.org/)
2) Code style should attempt to follow the [`tidyverse` style guide.](https://style.tidyverse.org/)
3) Please attempt to describe what you want to do prior to contributing by submitting an issue.
4) Please follow the typical github [fork - pull-request workflow.](https://gist.github.com/Chaser324/ce0505fbed06b947d962)
5) Make sure you use roxygen and run Check before contributing. More on this front as the package matures.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ be able to do that without your help!
1) Contributions should be thoroughly tested with
[`testthat`](https://testthat.r-lib.org/).
2) Code style should attempt to follow the [`tidyverse` style
guide.](https://style.%60tidyverse%60.org/)
guide.](https://style.tidyverse.org/)
3) Please attempt to describe what you want to do prior to contributing
by submitting an issue.
4) Please follow the typical github [fork - pull-request
Expand Down
4 changes: 2 additions & 2 deletions vignettes/plot_nhdplus.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ In order to maximize flexibility and make sure we understand what's going on wit

In this example, we have to plot just the geometry, extracted with `st_geometry` and we need to project the geometry into the plotting coordinate reference system, [EPSG:3857 also known as "web mercator"](https://en.wikipedia.org/wiki/Web_Mercator). The reason we have to make this transformation is that practically all basemap tiles are in this projection and reprojection of pre-rendered tiles doesn't look good. We do this with a simple `prep_layer` function.

The `mapsf`, `maptiles`, and base `plot` commands put data onto the R plotting device so the first to be plotted is on the bottom. A couple hints here. `lwd` is line width. `pch` is point style. `cex` is an expansion factor. Colors shown below are [basic R colors.](http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf) the `rgb` function is handy for creating colors with transparency if that's of interest.
The `mapsf`, `maptiles`, and base `plot` commands put data onto the R plotting device so the first to be plotted is on the bottom. A couple hints here. `lwd` is line width. `pch` is point style. `cex` is an expansion factor. Colors shown below are basic R colors. the `rgb` function is handy for creating colors with transparency if that's of interest.

```{r plot}
prep_layer <- function(x) st_geometry(st_transform(x, 3857))
Expand Down Expand Up @@ -203,7 +203,7 @@ text(label_pos[,1],label_pos[,2],

## Plotting with ggplot2

Below is a very similar example using [`ggmap`](https://github.com/dkahle/ggmap) and [`ggplot2` `geom_sf`](https://ggplot2.`tidyverse`.org/reference/ggsf.html). Note that ggmap takes case of projections for us, which should either make you happy because it _just works_ or very nervous because it _just works_.
Below is a very similar example using [`ggmap`](https://github.com/dkahle/ggmap) and [`ggplot2` `geom_sf`](https://ggplot2.tidyverse.org/reference/ggsf.html). Note that ggmap takes case of projections for us, which should either make you happy because it _just works_ or very nervous because it _just works_.

```{r ggmap, message=FALSE, warning=FALSE}
library(ggmap)
Expand Down

0 comments on commit 023ac2f

Please sign in to comment.