ggmap_data: Map the spatial distribution of FORCIS data

View source: R/ggmap_data.R

ggmap_dataR Documentation

Map the spatial distribution of FORCIS data

Description

Maps the spatial distribution of FORCIS data.

Usage

ggmap_data(data, col = "red", ...)

Arguments

data

a data.frame. One obtained by ⁠read_*_data()⁠ functions.

col

a character of length 1. The color of data on the map.

...

other graphical parameters passed on to geom_sf().

Value

A ggplot object.

Examples

# Attach the package ----
library("forcis")

# Import example dataset ----
file_name <- system.file(file.path("extdata", "FORCIS_net_sample.csv"), 
                         package = "forcis")

net_data <- read.table(file_name, dec = ".", sep = ";")

# Add 'data_type' column ----
net_data$"data_type" <- "Net"

# Map data (default) ----
ggmap_data(net_data)

# Map data ----
ggmap_data(net_data, col = "black", fill = "red", shape = 21, size = 2)

FRBCesab/forcis documentation built on Oct. 25, 2024, 9:26 a.m.