当前位置:网站首页>[data visualization application] draw spatial map (with R language code)
[data visualization application] draw spatial map (with R language code)
2022-06-25 06:05:00 【Wen Yu is solemn】
R-tmap Map space with compass and scale
tmap brief introduction
Speaking of drawing visualization works related to spatial data ,R Language is still better than Python It's much more convenient . Here we will briefly introduce tmap Spatial data visualization drawing package , Official website (https://mtennekes.github.io/tmap/) There are still many excellent renderings , as follows :


It is worth noting that ,tmap Having something similar to ggplot2 “ Layers ” Principle of grammar drawing , be familiar with ggplot2 The drawing partner will surely get started quickly
. Of course, it also has many drawing functions , However, highly customized space visualization works are required . Next , Let's use a concrete example to tmap The main drawing functions are described .
02. Example show
The required shp The main documents are :country、province、world Three shp File and for marking the city name city file . Read the code as follows :
library(rgdal)library(tmap)library(tmaptools)library(sp)country <- readOGR("bou1_4l.shp")province <- readOGR("prov
边栏推荐
- Rhcsa--- day 6 operation
- Leetcode sword finger offer question brushing - day 27
- What is SAP sup - Sybase unwired platform
- Websocket in the promotion of vegetable farmers
- Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications
- Processes and threads - concepts and process scheduling
- Echo command – output a string or extract the value of a shell variable
- Uname command – displays system information
- Do you know what a three-tier architecture is?
- C switch nested syntax
猜你喜欢
Websocket in the promotion of vegetable farmers

Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications

Gavin's insight on transformer live class - line by line analysis and field experiment analysis of insurance BOT microservice code of insurance industry in the actual combat of Rasa dialogue robot pro
SAP Fiori tools and corresponding cli (command line interface)
Use generator-easy-ui5 to quickly create the engineering structure of SAP ui5 applications

16 application problem solving

【LeetCode】40. Combined summation II (2 strokes of wrong questions)
SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications

Multithreading and thread pool
随机推荐
The elephant turns around and starts the whole body. Ali pushes Maoxiang not only to Jingdong
An easy problem
Wireless industrial Internet of things data monitoring terminal
Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones
Cat command – display the file contents on the terminal device
SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
Processes and threads - concepts and process scheduling
Noi Mathematics: Dirichlet convolution
How often should you refactor- How often should you refactor?
RM command – remove file or directory
DF command – displays disk space usage
ThreadLocal
Day17 (set)
C switch nested syntax
Guava-IO
Farewell to Lombok in 996
Optimal Parking
Fdisk command – disk partition
Highway
Understanding the dynamic mode of mongodb document