This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
# requires bcpss, getdata, mapmaryland, ggplot2 and dplyr | |
params <- | |
list( | |
program_name = c( | |
"John Ruhrah Elementary/Middle", | |
"John Ruhrah Elementary" | |
), | |
program_number = 228 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf")) | |
nc_random_pts <- sf::st_sample(nc, size = 1000) | |
nc_random_pts <- sf::st_join(sf::st_as_sf(nc_random_pts), nc) | |
bind_pt_coords <- function(x, ..., .drop = TRUE) { | |
if (sf::st_geometry_type(x, FALSE) != "POINT") { | |
coords <- suppressWarnings(sf::st_coordinates(sf::st_centroid(x))) | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Is x an GeoPackage filename or path? | |
#' | |
#' @param x File name or path name | |
#' @noRd | |
is_gpkg <- function(x) { | |
grepl("\\.gpkg$", x) | |
} | |
#' Check if x is a GeoPackage file | |
#' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(getdata) | |
library(ggplot2) | |
library(mapmaryland) | |
library(maplayer) | |
library(dplyr) | |
dead_zones <- | |
get_esri_data( | |
url = "https://geodata.md.gov/imap/rest/services/Environment/MD_ChesapeakeBayDeadZones/FeatureServer/0", | |
crs = 3857 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/version 3 | |
/name [ 15 | |
6767706c6f74322068656c70657273 | |
] | |
/isOpen 1 | |
/actionCount 2 | |
/action-1 { | |
/name [ 13 | |
52656c65617365204d61736b73 | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# read_sf_felt( | |
# "https://felt.com/embed/map/Example-Greatest-Bowling-Alleys-in-the-US-W9A04huJxTSCxfESYhkY9AOA" | |
# ) | |
read_sf_felt <- function(url) { | |
req <- | |
httr2::request( | |
url | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pak::pkg_install("elipousson/mapbaltimore") | |
# pak::pkg_install("elipousson/sfext") | |
# pak::pkg_install("elipousson/getdata") | |
library(dplyr) | |
library(purrr) | |
library(sfext) | |
library(mapbaltimore) | |
# path = # path to folder with photos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE connections> | |
<qgsARCGISFEATURESERVERConnections version="1.0"> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://gis.aacounty.org/arcgis/rest/services" name="Anne Arundel County GIS" password=""/> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://services1.arcgis.com/mVFRs7NF4iFitgbY/arcgis/rest/services" name="BNIA-JFI Vital Signs Open Data Portal" password=""/> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://services1.arcgis.com/UWYHeuuJISiGmgXx/ArcGIS/rest/services" name="Baltimore City ArcGIS Online Assorted" password=""/> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://dotgis.baltimorecity.gov/arcgis/rest/services" name="Baltimore City DOT GIS" password=""/> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://dpwgis.baltimorecity.gov/ags102/rest/services" name="Baltimore City DPW GIS" password=""/> | |
<arcgisfeatureserver authcfg="" referer="" username="" url="https://services1.arcgi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(dplyr) | |
library(ggplot2) | |
# pak::pkg_install("elipousson/mapmaryland") | |
plot_theme <- list( | |
hrbrthemes::theme_ipsum_pub(base_size = 15), | |
cols4all::scale_color_discrete_c4a_cat(palette = "tol.medium"), | |
cols4all::scale_fill_discrete_c4a_cat(palette = "tol.medium") | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "mapbaltimore, getdata, and maplayer" | |
output: html_document | |
date: '2022-07-15' | |
--- | |
```{r, include = FALSE} | |
knitr::opts_chunk$set( | |
collapse = TRUE, | |
comment = "#>" |