We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0d97de commit c63a777Copy full SHA for c63a777
R/plot_hist_f.R
@@ -60,7 +60,7 @@ plot_hist <- function(raster, bins, palette, name, logger = NULL) {
60
histogram$density <- histogram$counts / sum(histogram$counts) * 100
61
62
pal <- RColorBrewer::brewer.pal(9, palette)
63
- pal_ramp <- colorRampPalette(c(pal[1], pal[9]))
+ pal_ramp <- grDevices::colorRampPalette(c(pal[1], pal[9]))
64
hist_cols <- pal_ramp(bins)
65
66
function(){plot(histogram, freq = F, main = "", xlab = name, ylab = "Frequency (%)", col = hist_cols)}
0 commit comments