[未知用户] 我好像在运行了这段代码以后R无法连接internet,无法下载包了。。。请问怎么设置回去?
REmap入门示例
13 天 后
明明安装了,怎么加载不了呢?求助~
>install.packages("C:/Documents and Settings/Administrator/桌面/REmap-master.zip", repos = NULL, type = "win.binary")
> library(`REmap-master`)
Error in library(`REmap-master`) :
there is no package called ‘REmap-master’
>install.packages("C:/Documents and Settings/Administrator/桌面/REmap-master.zip", repos = NULL, type = "win.binary")
> library(`REmap-master`)
Error in library(`REmap-master`) :
there is no package called ‘REmap-master’
3 个月 后
很感兴趣,我想问一下,你的这个网站是实时更新么? 还是隔几天或者几小时更新一下
1 个月 后
你好,我想问一下怎么在REmap上添加图例呢
23 天 后
支持展现省市的地图吗?
7 天 后
> install_github('lchiffon/REmap')
Installation failed: Couldn't resolve host name
请问这是咋回事啊?
Installation failed: Couldn't resolve host name
请问这是咋回事啊?
1 年 后
你好 我输入install_github("lchiffon/REmap")后,显示
Skipping install of 'REmap' from a github remote, the SHA1 (7eabe6f7) has not changed since last install.
Use force = TRUE
to force installation
求解决办法
chendiankun
这说明你装过了
3 年 后
- 已编辑
## Reinitialized the REmap setting
remap.init()
## Get world city geocode from simplemaps.com
## https://simplemaps.com/data/world-cities
geodata <- readr::read_csv('data/worldcities.csv') |>
dplyr::filter(capital == 'primary') |>
dplyr::select(lng, lat, country, city) |>
dplyr::rename(lon = lng)
countries <- geodata$country |>
unique()
## randomly set country codes
data = data.frame(country = countries, value = 5 * sample(length(countries)) + 200)
## cities
vec <- geodata$city
## lon & lat of cities
geodata <- geodata |>
data.frame() |>
dplyr::select(lon, lat, city) |>
dplyr::rename(vec = city)
## Design a line data frame
markLinedata = data.frame(origin = rep('Beijing', (length(vec) - 1)), destination = geodata$vec[!geodata$vec %in% 'Beijing'])
## Plot the REmap shining
wmap <- remapC(data, maptype = 'world',
color = c('black', 'black'),
theme = get_theme(backgroundColor = 'black'),
markPointData = vec, markLineData = markLinedata,
geoData = geodata)
knitrREmap(wmap, local = FALSE)