My Quarto Sandbox

news
code
analysis
Author

Raul E.

Published

April 9, 2023

Welcome to my sandbox where I can play with Quarto features.

Callouts

Note

Note that there are five types of callouts, including: note, tip, warning, caution, and important.

Tip With Caption

This is an example of a callout with a caption.

# install.packages("tidycensus") 
library(tidycensus)
library(tidyverse)
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
✔ ggplot2 3.4.0      ✔ purrr   0.3.5 
✔ tibble  3.1.8      ✔ dplyr   1.0.10
✔ tidyr   1.2.1      ✔ stringr 1.4.1 
✔ readr   2.1.3      ✔ forcats 0.5.2 
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
library(ggplot2)
library(DBI)
library(RPostgres)
#library(sqlpetr)
library(sf)
Linking to GEOS 3.10.2, GDAL 3.4.2, PROJ 8.2.1; sf_use_s2() is TRUE
# census_api_key(key, overwrite = FALSE, install = FALSE)

Searching for Variables

sf::st_drivers()
                         name
ESRIC                   ESRIC
PCIDSK                 PCIDSK
PDS4                     PDS4
VICAR                   VICAR
JP2OpenJPEG       JP2OpenJPEG
PDF                       PDF
MBTiles               MBTiles
BAG                       BAG
EEDA                     EEDA
OGCAPI                 OGCAPI
ESRI Shapefile ESRI Shapefile
MapInfo File     MapInfo File
UK .NTF               UK .NTF
LVBAG                   LVBAG
OGR_SDTS             OGR_SDTS
S57                       S57
DGN                       DGN
OGR_VRT               OGR_VRT
REC                       REC
Memory                 Memory
CSV                       CSV
GML                       GML
GPX                       GPX
KML                       KML
GeoJSON               GeoJSON
GeoJSONSeq         GeoJSONSeq
ESRIJSON             ESRIJSON
TopoJSON             TopoJSON
OGR_GMT               OGR_GMT
GPKG                     GPKG
SQLite                 SQLite
WAsP                     WAsP
PostgreSQL         PostgreSQL
OpenFileGDB       OpenFileGDB
DXF                       DXF
CAD                       CAD
FlatGeobuf         FlatGeobuf
Geoconcept         Geoconcept
GeoRSS                 GeoRSS
GPSTrackMaker   GPSTrackMaker
VFK                       VFK
PGDUMP                 PGDUMP
OSM                       OSM
GPSBabel             GPSBabel
OGR_PDS               OGR_PDS
WFS                       WFS
OAPIF                   OAPIF
EDIGEO                 EDIGEO
SVG                       SVG
CouchDB               CouchDB
Cloudant             Cloudant
Idrisi                 Idrisi
ARCGEN                 ARCGEN
XLS                       XLS
ODS                       ODS
XLSX                     XLSX
Elasticsearch   Elasticsearch
Carto                   Carto
AmigoCloud         AmigoCloud
SXF                       SXF
Selafin               Selafin
JML                       JML
PLSCENES             PLSCENES
CSW                       CSW
VDV                       VDV
MVT                       MVT
NGW                       NGW
MapML                   MapML
TIGER                   TIGER
AVCBin                 AVCBin
AVCE00                 AVCE00
HTTP                     HTTP
                                                          long_name write  copy
ESRIC                                            Esri Compact Cache FALSE FALSE
PCIDSK                                         PCIDSK Database File  TRUE FALSE
PDS4                                   NASA Planetary Data System 4  TRUE  TRUE
VICAR                                               MIPL VICAR file  TRUE  TRUE
JP2OpenJPEG              JPEG-2000 driver based on OpenJPEG library FALSE  TRUE
PDF                                                  Geospatial PDF  TRUE  TRUE
MBTiles                                                     MBTiles  TRUE  TRUE
BAG                                      Bathymetry Attributed Grid  TRUE  TRUE
EEDA                                          Earth Engine Data API FALSE FALSE
OGCAPI                                                       OGCAPI FALSE FALSE
ESRI Shapefile                                       ESRI Shapefile  TRUE FALSE
MapInfo File                                           MapInfo File  TRUE FALSE
UK .NTF                                                     UK .NTF FALSE FALSE
LVBAG                                   Kadaster LV BAG Extract 2.0 FALSE FALSE
OGR_SDTS                                                       SDTS FALSE FALSE
S57                                                  IHO S-57 (ENC)  TRUE FALSE
DGN                                                Microstation DGN  TRUE FALSE
OGR_VRT                                    VRT - Virtual Datasource FALSE FALSE
REC                                                   EPIInfo .REC  FALSE FALSE
Memory                                                       Memory  TRUE FALSE
CSV                                    Comma Separated Value (.csv)  TRUE FALSE
GML                                 Geography Markup Language (GML)  TRUE FALSE
GPX                                                             GPX  TRUE FALSE
KML                                   Keyhole Markup Language (KML)  TRUE FALSE
GeoJSON                                                     GeoJSON  TRUE FALSE
GeoJSONSeq                                         GeoJSON Sequence  TRUE FALSE
ESRIJSON                                                   ESRIJSON FALSE FALSE
TopoJSON                                                   TopoJSON FALSE FALSE
OGR_GMT                                    GMT ASCII Vectors (.gmt)  TRUE FALSE
GPKG                                                     GeoPackage  TRUE  TRUE
SQLite                                          SQLite / Spatialite  TRUE FALSE
WAsP                                               WAsP .map format  TRUE FALSE
PostgreSQL                                       PostgreSQL/PostGIS  TRUE FALSE
OpenFileGDB                                            ESRI FileGDB FALSE FALSE
DXF                                                     AutoCAD DXF  TRUE FALSE
CAD                                                  AutoCAD Driver FALSE FALSE
FlatGeobuf                                               FlatGeobuf  TRUE FALSE
Geoconcept                                               Geoconcept  TRUE FALSE
GeoRSS                                                       GeoRSS  TRUE FALSE
GPSTrackMaker                                         GPSTrackMaker  TRUE FALSE
VFK                            Czech Cadastral Exchange Data Format FALSE FALSE
PGDUMP                                          PostgreSQL SQL dump  TRUE FALSE
OSM                                       OpenStreetMap XML and PBF FALSE FALSE
GPSBabel                                                   GPSBabel  TRUE FALSE
OGR_PDS                                Planetary Data Systems TABLE FALSE FALSE
WFS                                   OGC WFS (Web Feature Service) FALSE FALSE
OAPIF                                            OGC API - Features FALSE FALSE
EDIGEO                                French EDIGEO exchange format FALSE FALSE
SVG                                        Scalable Vector Graphics FALSE FALSE
CouchDB                                          CouchDB / GeoCouch  TRUE FALSE
Cloudant                                         Cloudant / CouchDB  TRUE FALSE
Idrisi                                         Idrisi Vector (.vct) FALSE FALSE
ARCGEN                                            Arc/Info Generate FALSE FALSE
XLS                                                 MS Excel format FALSE FALSE
ODS            Open Document/ LibreOffice / OpenOffice Spreadsheet   TRUE FALSE
XLSX                                 MS Office Open XML spreadsheet  TRUE FALSE
Elasticsearch                                        Elastic Search  TRUE FALSE
Carto                                                         Carto  TRUE FALSE
AmigoCloud                                               AmigoCloud  TRUE FALSE
SXF                                     Storage and eXchange Format FALSE FALSE
Selafin                                                     Selafin  TRUE FALSE
JML                                                    OpenJUMP JML  TRUE FALSE
PLSCENES                                     Planet Labs Scenes API FALSE FALSE
CSW                          OGC CSW (Catalog  Service for the Web) FALSE FALSE
VDV                             VDV-451/VDV-452/INTREST Data Format  TRUE FALSE
MVT                                             Mapbox Vector Tiles FALSE FALSE
NGW                                                     NextGIS Web  TRUE  TRUE
MapML                                                         MapML  TRUE FALSE
TIGER                                        U.S. Census TIGER/Line  TRUE FALSE
AVCBin                                     Arc/Info Binary Coverage FALSE FALSE
AVCE00                                Arc/Info E00 (ASCII) Coverage FALSE FALSE
HTTP                                          HTTP Fetching Wrapper FALSE FALSE
               is_raster is_vector   vsi
ESRIC               TRUE      TRUE  TRUE
PCIDSK              TRUE      TRUE  TRUE
PDS4                TRUE      TRUE  TRUE
VICAR               TRUE      TRUE  TRUE
JP2OpenJPEG         TRUE      TRUE  TRUE
PDF                 TRUE      TRUE FALSE
MBTiles             TRUE      TRUE  TRUE
BAG                 TRUE      TRUE  TRUE
EEDA               FALSE      TRUE FALSE
OGCAPI              TRUE      TRUE  TRUE
ESRI Shapefile     FALSE      TRUE  TRUE
MapInfo File       FALSE      TRUE  TRUE
UK .NTF            FALSE      TRUE  TRUE
LVBAG              FALSE      TRUE  TRUE
OGR_SDTS           FALSE      TRUE  TRUE
S57                FALSE      TRUE  TRUE
DGN                FALSE      TRUE  TRUE
OGR_VRT            FALSE      TRUE  TRUE
REC                FALSE      TRUE FALSE
Memory             FALSE      TRUE FALSE
CSV                FALSE      TRUE  TRUE
GML                FALSE      TRUE  TRUE
GPX                FALSE      TRUE  TRUE
KML                FALSE      TRUE  TRUE
GeoJSON            FALSE      TRUE  TRUE
GeoJSONSeq         FALSE      TRUE  TRUE
ESRIJSON           FALSE      TRUE  TRUE
TopoJSON           FALSE      TRUE  TRUE
OGR_GMT            FALSE      TRUE  TRUE
GPKG                TRUE      TRUE  TRUE
SQLite             FALSE      TRUE  TRUE
WAsP               FALSE      TRUE  TRUE
PostgreSQL         FALSE      TRUE FALSE
OpenFileGDB        FALSE      TRUE  TRUE
DXF                FALSE      TRUE  TRUE
CAD                 TRUE      TRUE  TRUE
FlatGeobuf         FALSE      TRUE  TRUE
Geoconcept         FALSE      TRUE  TRUE
GeoRSS             FALSE      TRUE  TRUE
GPSTrackMaker      FALSE      TRUE  TRUE
VFK                FALSE      TRUE FALSE
PGDUMP             FALSE      TRUE  TRUE
OSM                FALSE      TRUE  TRUE
GPSBabel           FALSE      TRUE FALSE
OGR_PDS            FALSE      TRUE  TRUE
WFS                FALSE      TRUE  TRUE
OAPIF              FALSE      TRUE FALSE
EDIGEO             FALSE      TRUE  TRUE
SVG                FALSE      TRUE  TRUE
CouchDB            FALSE      TRUE FALSE
Cloudant           FALSE      TRUE FALSE
Idrisi             FALSE      TRUE  TRUE
ARCGEN             FALSE      TRUE  TRUE
XLS                FALSE      TRUE FALSE
ODS                FALSE      TRUE  TRUE
XLSX               FALSE      TRUE  TRUE
Elasticsearch      FALSE      TRUE FALSE
Carto              FALSE      TRUE FALSE
AmigoCloud         FALSE      TRUE FALSE
SXF                FALSE      TRUE  TRUE
Selafin            FALSE      TRUE  TRUE
JML                FALSE      TRUE  TRUE
PLSCENES            TRUE      TRUE FALSE
CSW                FALSE      TRUE FALSE
VDV                FALSE      TRUE  TRUE
MVT                FALSE      TRUE  TRUE
NGW                 TRUE      TRUE FALSE
MapML              FALSE      TRUE  TRUE
TIGER              FALSE      TRUE  TRUE
AVCBin             FALSE      TRUE  TRUE
AVCE00             FALSE      TRUE  TRUE
HTTP                TRUE      TRUE FALSE
# GDAL drivers
st_drivers() %>% 
  filter(grepl("Post", name))
                 name          long_name write  copy is_raster is_vector   vsi
PostgreSQL PostgreSQL PostgreSQL/PostGIS  TRUE FALSE     FALSE      TRUE FALSE