Description Usage Arguments Details Value References Examples

This function plots a response variable against a covariate, with different groups of data identified by colour and symbol. It also creates a panel which controls the model which is fitted to the data and displayed on the plot.

1 2 |

`x` |
a vector of covariate values. |

`y` |
a vector of response values. |

`group` |
a vector of group indicators. If this is not already a factor it will be converted into one. |

`panel` |
a logical variable which determines whether a panel is created to allow interactive control of the fitted models. |

`panel.plot` |
a logical parameter which determines whether the plot is placed inside the panel (TRUE) or the standard graphics window (FALSE). If the plot is to be placed inside the panel then the |

`model, model0` |
logical vectors of length 4 defining the initial and comparison models to be fitted. The four values determine whether each of the four terms intercept, |

`xlab` |
a character variable used for the covariate axis label. |

`ylab` |
a character variable used for the response axis label. |

`glab` |
a character variable used for the group variable label. |

`hscale, vscale` |
scaling parameters for the size of the plot when |

`style` |
a character variable used to determine whether the style of controls in earlier version of the |

Static plots, for printing or other purposes can be created by setting the panel argument to FALSE and specifying the model of interest.

Nothing is returned.

rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.

1 2 3 4 5 6 | ```
## Not run:
with(gullweight, {
rp.ancova(hab, weight, month)
})
## End(Not run)
``` |

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.