Files
lec-location-based-services/ex01.Rmd
2025-10-20 20:38:05 +02:00

34 lines
819 B
Plaintext

---
title: "Location Based Services Exercise 01"
author: "Erik Neller"
date: "`r Sys.Date()`"
output: pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(ggplot2)
library(DataExplorer)
library(raster)
library(rworldmap)
library(sp)
library(sf) # https://aur.archlinux.org/packages/udunits
```
## Croatian Destinations
Write an R script that creates a map of Croatia. On
the map, mark 3 places you would like to visit.
Use the rworldmap library. Use Geonames to obtain
coordinates: https://www.geonames.org
```{r croatia}
library(rworldmap)
world <- getMap(resolution = "low")
plot(world, xlim = c(20, 30), ylim = c(35, 71)
, asp = 1
, col = "white"
,bg = "lightblue", # background (sea) color
)
#points(airports$lon, airports$lat, col = "red", cex = .6)
```