plot.predict.downscale {downscale}R Documentation

Plotting of downscaled occupancy at fine grain sizes


A simple plotting function of predict.downscale objects. Occupancy is plotted against grain size (cell area) in log-log space. Observed occupancy at large grain sizes are plotted in black, and occupancies predicted through predict.downscale plotted in red.


## S3 method for class 'predict.downscale'
plot(x, xlim = NULL, ylim = NULL,
     xlab = NULL, ylab = NULL, main = NULL, lwd.obs = NULL, lwd.pred = NULL,
     col.obs = NULL, col.pred = NULL, ...)



Output object from predict.downscale and of class predict.downscale

xlim, ylim

limits of axes. Defaults to minimum and maximum of data.

xlab, ylab, main

axis labels and title.

lwd.obs, lwd.pred

line width of observed and predicted occupancies (default = 2).

col.obs, col.pred

line and point colours of observed (default = black) and predicted (default = red) occupancies.


arguments, including graphical parameters passed to other methods.


No returned value.


Charles Marsh <>.

See Also

See predict.downscale and hui.downscale for generating predict.downscale objects.


## example species data
data.file <- system.file("extdata", "atlas_data.txt", package = "downscale") <- read.table(data.file, header = TRUE)

## upgrain data (using All Occurrences threshold)
occupancy <- upgrain(,
                     cell.width = 10,
                     scales = 3,
                     method = "All_Sampled",
                     plot = FALSE)

## Logistic model
logis <- downscale(occupancies = occupancy,
                   model = "Logis")

## predict occupancies at fine scales
logis.pred <- predict(logis,
                      new.areas = c(1, 5, 25, 100, 400, 1600, 6400))

## plot predictions

## change some of the plotting arguments
     col.obs = "blue",
     pch = 16,
     ylim = c(0.01, 0.7))

[Package downscale version 4.2-0 Index]