plot_curves: Plot a zonation object

Description Usage Arguments Examples

View source: R/plot_curves.r

Description

Plot a zonation object using ggplot

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
plot_curves(
  x,
  features = NULL,
  feature_names = NULL,
  invert = TRUE,
  main = "Performance curves",
  legend.title = "Performance",
  blackwhite = FALSE,
  ...
)

Arguments

x

a zonation object.

features

a numeric vector of columns to call from curves data.frame.

feature_names

character vector of feature names to select for plotting

invert

logical invert x-axis.

main

title of plot, default is 'Performance curves'.

legend.title

title of legend, default is 'Performance'.

blackwhite

FALSE make plot black and white.

...

other plot arguments.

Examples

1
2
3
4
5
library(raster)
r1 <- raster(matrix(runif(200^2, 0, 1), 200))
r2 <- raster(matrix(runif(200^2, 0, 1), 200))
plan <- rzonation::zonation(stack(r1, r2))
plot_curves(plan)

wkmor1/rzonation documentation built on Jan. 18, 2020, 4:47 a.m.