Skip to content

Commit a830f26

Browse files
authored
Update 图11-10-2 三维柱形地图.R
1 parent 3f73365 commit a830f26

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

第11章 地理空间型图表/图11-10-2 三维柱形地图.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
#EasyCharts团队出品,
3-
#如需使用与深入学习,请联系微信:EasyCharts
2+
#EasyShu团队出品,更多文章请关注微信公众号【EasyShu】
3+
#如有问题修正与深入学习,可联系微信:EasyCharts
44

55
library(plot3D)
6-
library(rgdal) #提供readOGR()函数
6+
library(rgdal) #提供readOGR()函数
77
library(ggplot2)
88
library(dplyr)
99
library(RColorBrewer)
@@ -64,7 +64,7 @@ rownames(z)<-z$lat
6464

6565

6666

67-
#(a) Spectral 多色渐变系
67+
#(a) Spectral 多色渐变系
6868
cols<-colorRampPalette(colormap)(20)
6969
hist3D(x=long_mar,y=lat_mar,z=as.matrix(z[,2:ncol(z)]),
7070
col = cols, border = "gray",space=0,alpha = 1,lwd=0.1,
@@ -73,7 +73,7 @@ hist3D(x=long_mar,y=lat_mar,z=as.matrix(z[,2:ncol(z)]),
7373
theta = 35, phi = 20, d=3,
7474
colkey = list(length = 0.5, width = 1))
7575

76-
#(b) 单色渐变系
76+
#(b) 单色渐变系
7777
cols<-colorRampPalette(c("#F7FBFF", "red"))(20)
7878

7979
hist3D(x=long_mar,y=lat_mar,z=as.matrix(z[,2:ncol(z)]),

0 commit comments

Comments
 (0)