Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the R language version of the data map

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

What this article shares with you is about the R language version of the data map. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.

What I want to share with you today is the R language version of the data map, provincial (municipal) thermal map.

The steps are basically the same as the steps of the thermal map of China shared yesterday, except that the data files that need to be called and the index files that need to be customized are slightly different.

R language system environment configuration:

R version 3.2.3

RStudio Version 0.99.484

Before you begin, you must make sure that the following packages are installed in your R language environment:

Ggplot2

Plyr

Maptools

If you haven't already installed, you need to install install.packages ("ggplot2", "plyr", "maptools") first.

Here are the formal drawing steps:

1. Load the required R package:

Library (ggplot2)

Library (plyr)

Library (maptools)

2. Read in the drawing data:

CHN_adm2

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report