Description Usage Arguments Author(s) See Also Examples
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.
1 2 3 4 |
x |
Output object from |
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 ( |
col.obs, col.pred |
line and point colours of observed ( |
... |
arguments, including graphical parameters passed to other methods. |
Charles Marsh <charliem2003@gmail.com>.
See predict.downscale
and hui.downscale
for generating predict.downscale
objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## example species data
data.file <- system.file("extdata", "atlas_data.txt", package = "downscale")
atlas.data <- read.table(data.file, header = TRUE)
## upgrain data (using All Occurrences threshold)
occupancy <- upgrain(atlas.data,
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
plot(logis.pred)
## change some of the plotting arguments
plot(logis.pred,
col.obs = "blue",
pch = 16,
ylim = c(0.01, 0.7))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.