ggmap_data | R Documentation |
Maps the spatial distribution of FORCIS data.
ggmap_data(data, col = "red", ...)
data |
a |
col |
a |
... |
other graphical parameters passed on to |
A ggplot
object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.