cntr {labsimplex}R Documentation

Contour plot of example response surfaces

Description

Plots a ggplot with the contour of the bivariate example response surfaces included in the package.

Usage

cntr(surface, length = 150, noise = 0, x1lim = c(278, 365), x2lim = c(0, 14))

Arguments

surface

example response surface to use. See exampleSurfaceR2 and exampleSurfaceR2.2pks.

length

number of levels to use in each explanatory variables

noise

absolute noise to be included in the results

x1lim

limits for the first variable (temperature in exampleSurfaceR2 and exampleSurfaceR2.2pks)

x2lim

limits for the second variable (pH in exampleSurfaceR2 and exampleSurfaceR2.2pks)

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Jesús Ágreda, jagreda@unal.edu.co

References

H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.

Examples

  p <- cntr(surface = exampleSurfaceR2, length = 200)
  print(p)

[Package labsimplex version 0.1.2 Index]