Skip to contents

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)