powered by
Plots a ggplot with the contour of the bivariate example response surfaces included in the package.
ggplot
cntr(surface, length = 150, noise = 0, x1lim = c(278, 365), x2lim = c(0, 14))
example response surface to use. See exampleSurfaceR2 and exampleSurfaceR2.2pks.
exampleSurfaceR2
exampleSurfaceR2.2pks
number of levels to use in each explanatory variables
absolute noise to be included in the results
limits for the first variable (temperature in exampleSurfaceR2 and exampleSurfaceR2.2pks)
limits for the second variable (pH in exampleSurfaceR2 and exampleSurfaceR2.2pks)
H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.
# NOT RUN { p <- cntr(surface = exampleSurfaceR2, length = 200) print(p) # }
Run the code above in your browser using DataLab