Description Usage Arguments Note See Also Examples

Compare `earth`

models by plotting them.

1 2 3 4 5 6 7 8 9 | ```
## S3 method for class 'earth.models'
plot(x = stop("no 'x' argument"), which = c(1:2),
caption = "", jitter = 0,
col.grsq = discrete.plot.cols(length(objects)), lty.grsq = 1,
col.rsq = 0, lty.rsq = 5,
col.vline = col.grsq, lty.vline = "12",
col.npreds = 0, lty.npreds = 2,
legend.text = NULL, do.par = NULL, trace = 0,
...)
``` |

`x` |
A list of one or more |

`which` |
Which plots to plot: 1 model, 2 cumulative distribution of residuals.
Default is |

`caption` |
Overall caption. Values: |

`jitter` |
Jitter applied to GRSq and RSq values to minimize over-plotting.
Default is |

`col.grsq` |
Vector of colors for the GRSq plot.
The default is |

`lty.grsq` |
Line type for the GRSq plot.
Default is |

`col.rsq` |
Vector of colors for the RSq plot.
Default is |

`lty.rsq` |
Line type for the RSq plot.
Default is |

`col.vline` |
A vertical line is drawn for each object
to show which model size was chosen for that object.
The color of the line is |

`lty.vline` |
Line type of vertical lines (a vertical line is drawn to show the selected model for each object).
Can be a vector.
Default is |

`col.npreds` |
Vector of colors for the "number of predictors" plot within the model selection plot.
Default is |

`lty.npreds` |
Line type of the "number of predictors" plot (in the Model Selection plot).
Default is |

`legend.text,do.par,trace` |
Please see |

`...` |
Please see |

This function ignores GLM and cross-validation components of the earth model, if any.

`earth`

,
`plot.earth`

,
`plot.earth.models`

,
`plotd`

,
`plotmo`

1 2 3 4 5 |

```
Loading required package: plotmo
Loading required package: plotrix
Loading required package: TeachingDemos
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.