当前位置:网站首页>[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
- John
- MySQL transaction learning notes (I) first encounter
- Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
- Part 34 of SAP ui5 application development tutorial - device adaptation of SAP ui5 application based on device type
- Go uses channel to control concurrency
- MV command – move or rename files
- Day21 performance test process
- SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
- Summary of 6 common methods of visual deep learning model architecture
猜你喜欢

Uni app wechat applet customer service chat function

What happens when redis runs out of memory

Laravel8 fill data

Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034

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
Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools

MySQL uses the where condition to find strange results: solve

The elephant turns around and starts the whole body. Ali pushes Maoxiang not only to Jingdong
Linus' speech recordings, which were lost in 1994, were made public
Interviewer: what is an iterator? What is the relationship between async await and iterators?
随机推荐
Introduction to the main features of kyma when the cloud native application runs
05 virtual machine stack
Count the grid
Feignclient reported an error npe:null
Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools
Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
A method of automatic continuation of previous tables in word table
Simple student management system
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
RT thread i/o device model and layering
Linus' speech recordings, which were lost in 1994, were made public
Aiot project that is an introduction to the basics of the Internet of things and can be implemented in practice
Cat command – display the file contents on the terminal device
Understanding the dynamic mode of mongodb document
An easy problem
Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
Ifconfig command – displays or sets network devices
SAP ui5 application development tutorial XXIX - Introduction to routing and navigation functions of SAP ui5 trial version
Day16 (regular expression, enumeration)