Plots a landscape with colors or hatched lines to represent different types of fields

plotland(
  landscape,
  COL = rep(0, length(landscape)),
  DENS = rep(0, length(landscape)),
  ANGLE = rep(30, length(landscape)),
  COL.LEG = unique(COL),
  DENS.LEG = unique(DENS),
  ANGLE.LEG = unique(ANGLE),
  TITLE = "",
  SUBTITLE = "",
  LEGEND1 = rep("", length(COL.LEG)),
  LEGEND2 = rep("", length(COL.LEG)),
  TITLE.LEG2 = ""
)

Arguments

landscape

a spatialpolygon object containing field coordinates

COL

vector containing the color of each field

DENS

vector containing the density of hatched lines for each field

ANGLE

vector containing the angle of hatched lines for each field

COL.LEG

vector containing the colors in the first legend

DENS.LEG

vector containing the density of hatched lines in the second legend

ANGLE.LEG

vector containing the angle of hatched lines in the second legend

TITLE

title of the graphic

SUBTITLE

subtitle of the graphic

LEGEND1

labels in the first legend (colors)

LEGEND2

labels in the second legend (hatched lines)

TITLE.LEG2

title for the second legend

Examples

if (FALSE) {
## Draw a landscape with various colours
landscapeTEST1
plotland(landscapeTEST1,
  COL = 1:length(landscapeTEST1),
  DENS = rep(0, length(landscapeTEST1)), ANGLE = rep(30, length(landscapeTEST1))
)
}