This function provides a summary of key information for a GP, DGP, or linked (D)GP emulator by generating either a table or an interactive plot of the emulator’s structure.
# S3 method for gp
summary(object, type = "plot", ...)# S3 method for dgp
summary(object, type = "plot", ...)
# S3 method for lgp
summary(object, type = "plot", group_size = 1, ...)
Either a summary table (returned as kableExtra object) or an interactive visualization
(returned as a visNetwork object) of the emulator. The visualization is compatible with R Markdown
documents and the RStudio Viewer. The summary table can be further customized by kableExtra::kableExtra package.
The resulting visNetwork object can be saved as an HTML file using visNetwork::visSave() from the visNetwork::visNetwork package.
can be one of the following:
the S3 class gp.
the S3 class dgp.
the S3 class lgp.
a character string, either "table" or "plot", indicating the format of the output.
If set to "table", the function returns a summary in table. If set to "plot", the function
returns an interactive visualization. Defaults to "plot".
Any arguments that can be passed to kableExtra::kbl() when type = "table".
an integer specifying the number of consecutive layers to be grouped together
in the interactive visualization of linked emulators when type = "plot".
This argument is only applicable if object is an instance of the lgp class.
Defaults to 1.
See further examples and tutorials at https://mingdeyu.github.io/dgpsi-R/.
if (FALSE) {
# See gp(), dgp(), or lgp() for an example.
}
Run the code above in your browser using DataLab