gcf_data | R Documentation |
Makes filled contour plot from data without sidebar by interpolating with a Gaussian process model. This is the same as 'cf_data' except it will use ggplot2 to make the plot.
gcf_data(
x,
y = NULL,
z = NULL,
xlim = NULL,
ylim = NULL,
xylim = NULL,
fit = "",
gg = TRUE,
...
)
x |
either just x data, x and y data, or x, y and z data |
y |
either y data, z data, or null |
z |
either z data or null |
xlim |
x limits for the contour plot, will be set to data limits +- 5% if not specified |
ylim |
y limits for the contour plot, will be set to data limits +- 5% if not specified |
xylim |
x and y limits for the contour plot |
fit |
Method to fit a model with. Current options are laGP (default) and mlegp. laGP is faster but might cause trouble. |
gg |
If FALSE, will use base graphics by calling cf_func() |
... |
passed to cf_func |
x <- runif(20)
y <- runif(20)
z <- exp(-(x-.5)^2-5*(y-.5)^2)
gcf_data(x,y,z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.