Skip to content

Commit

Permalink
Update 03-cont-raster-plot.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Nowosad authored Dec 26, 2024
1 parent 73f8dd7 commit 7551f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/03-cont-raster-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ colfunc2 = c("clay" = "brown", "silt" = "sandybrown", "sand" = "rosybrown")
p1 = tm_shape(elev) +
tm_raster(col.scale = tm_scale_continuous(),
col.legend = tm_legend(title = "",
position = tm_pos_auto_in(),
position = tm_pos_in(),
bg.color = "white"))

p2 = tm_shape(grain) +
tm_raster(col.scale = tm_scale_categorical(values = colfunc2),
col.legend = tm_legend(title = "",
position = tm_pos_auto_in(),
position = tm_pos_in(),
bg.color = "white"))
tmap_arrange(p1, p2, nrow = 1)

0 comments on commit 7551f5d

Please sign in to comment.