|
6 | 6 |
|
7 | 7 | .scatterPlotRaster <- function(x, y, maxcell=100000, warn=TRUE, cex, xlab, ylab, nc, nr, |
8 | 8 | maxnl=16, main, add=FALSE, smooth=FALSE, gridded=FALSE, ncol=25, nrow=25, asp=NA, |
9 | | - colramp=grDevices::colorRampPalette(c("white", grDevices::blues9)), ...) { |
| 9 | + ramp=grDevices::colorRampPalette(c("white", grDevices::blues9)), ...) { |
10 | 10 |
|
11 | 11 | compareGeom(x, y, lyrs=FALSE, crs=FALSE, warncrs=FALSE, ext=TRUE, rowcol=TRUE, res=FALSE) |
12 | 12 | nlx <- nlyr(x) |
|
67 | 67 | dots <- list(...) |
68 | 68 | if (!is.null(dots$col)) { |
69 | 69 | if (is.function(dots$col)) { |
70 | | - colramp <- grDevices::colorRampPalette(dots$col) |
| 70 | + ramp <- grDevices::colorRampPalette(dots$col) |
71 | 71 | } else { |
72 | 72 | warn("plot<SpatRaster,SpatRaster>", "when smooth=TRUE, col must be a function") |
73 | 73 | } |
|
118 | 118 |
|
119 | 119 | if (smooth) { |
120 | 120 | for (i in 1:nl) { |
121 | | - graphics::smoothScatter(x[,i], y[,i], main=main[i], xlab=ln1[i], ylab=ln2[i], add=add, asp=asp, colramp=colramp, ...) |
| 121 | + graphics::smoothScatter(x[,i], y[,i], main=main[i], xlab=ln1[i], ylab=ln2[i], add=add, asp=asp, colramp=ramp, ...) |
122 | 122 | } |
123 | 123 | } else if (gridded) { |
124 | 124 | for (i in 1:nl) { |
|
137 | 137 | } |
138 | 138 | } else { |
139 | 139 | if (smooth) { |
140 | | - graphics::smoothScatter(x, y, main=main[1], xlab=ln1[1], ylab=ln2[1], add=add, asp=asp, colramp=colramp, ...) |
| 140 | + graphics::smoothScatter(x, y, main=main[1], xlab=ln1[1], ylab=ln2[1], add=add, asp=asp, colramp=ramp, ...) |
141 | 141 | } else if (gridded) { |
142 | 142 | .plotdens(x, y, nc=ncol, nr=nrow, main=main[1], xlab=ln1[1], ylab=ln2[1], add=add, asp=asp, ...) |
143 | 143 | } else { |
|
0 commit comments