Description Usage Arguments Details Author(s) See Also Examples

For multivariate data, outputs marginal contour or uncertainty plots to the graphics device for objects of class `teigen`

. For univariate data, plot a univariate density plot.

1 2 3 4 5 6 |

`x` |
An object of class |

`xmarg` |
Scalar argument giving the number of the variable to be used on the x-axis |

`ymarg` |
Scalar argument giving the number of the variable to be used on the y-axis. If |

`res` |
Scalar argument giving the resolution for the calculation grid required for the contour plot. Default is 200, which results in a 200x200 grid. Also determines how smooth the univariate density curves are (higher res, smoother curves). Ignored for uncertainty plots. |

`what` |
Only available if the model provided by x is multivariate. Character vector stating which plots should be sent to the graphics device. Choices are |

`alpha` |
A factor modifying the opacity alpha for the plotted points. Typically in [0,1]. |

`col` |
A specification for the default plotting color. See section 'Color Specification' in |

`pch` |
Either an integer specifying a symbol or a single character to be used as the default in plotting points. See |

`cex` |
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. For uncertainty plots, cex changes the size of the smallest sized point. The relative sizes amongst the points remains the same. As a result, the sizes of all the points change. |

`bg` |
Background (fill) color for the open plot symbols if pch is one of 21:25. If pch is in 21:25 point color will be black (col = "black" will be used). If no bg is given to color the inside of the points, col will be used. |

`lty` |
The line type for univariate plotting. See |

`uncmult` |
A multiplier for the points on the uncertainty plot. The larger the number, the more the size difference becomes magnified. Large points will get larger faster than smaller points. |

`levels` |
Numeric vector giving the levels at which contours should be drawn. Default is to draw a contour in 0.25 steps, plus a contour at 0.001. This may result in more/less contours than desired depending on the resulting density. |

`main` |
Optional character string for title of plot. Useful default if left as |

`xlab` |
Optional character string for x-axis label. |

`draw.legend` |
Logical for a default generation of a legend to the right of the plot. |

`...` |
Options to be passed to |

`"contour"`

plots the marginal distribution of the mixture distribution. For univariate data, or if `ymarg`

is `NULL`

, a univariate marginal is provided that includes the kernel density estimate from `density()`

, the mixture distribution, and colour-coded component densities.

`"uncertainty"`

plots the uncertainty of each observation's classification - the larger the point, the more uncertainty associated with that observation. Uncertainty in this context refers to the probability that the observation arose from the mixture component specified by the colour in the plot rather than the other components.

The default behavior of the function is to specify both plot types. This opens up an interactive menu from which the user may switch back and forth between both graphs. On exiting the menu, the graph that was plotted last will remain in the open device.

Jeffrey L. Andrews, Jaymeson R. Wickins, Nicholas M. Boers

1 2 3 4 5 6 |

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.