Learn R Programming

ggfortify (version 0.4.17)

autoplot.RasterCommon: Autoplot raster::raster

Description

Only plot the first layer of the given raster

Usage

# S3 method for RasterCommon
autoplot(
  object,
  raster.layer = NULL,
  p = NULL,
  alpha = NULL,
  xlim = c(NA, NA),
  ylim = c(NA, NA),
  log = "",
  main = NULL,
  xlab = "",
  ylab = "",
  asp = NULL,
  ...
)

Value

ggplot

Arguments

object

raster::raster instance

raster.layer

name of the layer to plot

p

ggplot2::ggplot instance

alpha

alpha

xlim

limits for x axis

ylim

limits for y axis

log

which variables to log transform ("x", "y", or "xy")

main

character vector or expression for plot title

xlab

character vector or expression for x axis label

ylab

character vector or expression for y axis label

asp

the y/x aspect ratio

...

other arguments passed to methods