| plot_g_contour | R Documentation |
Creates a ggplot2 visualization for any g-function group. For d <= 1,
produces a 2D scatter plot (same as plot_g_function()). For d >= 2,
produces a filled contour plot suitable for static formats like PDF and Word.
plot_g_contour(earth_result, group_index, response_idx = NULL)
earth_result |
An object of class |
group_index |
Integer. Index of the g-function group (1-based, from
|
response_idx |
Integer or |
A ggplot2::ggplot object.
result <- fit_earth(mtcars, "mpg", c("cyl", "disp", "hp", "wt"))
plot_g_contour(result, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.