plot {rrMixture}R Documentation

Visualize rrmix Objects

Description

S3 methods visualizing results for some objects generated by rrmix and tune.rrmix.

Usage

## S3 method for class 'rrmix'
plot(
  x,
  pch.L = 1,
  pch.F = 2,
  col.L = "red",
  col.F = "blue",
  lty.L = 1,
  lty.F = 1,
  type = "b",
  ...
)

## S3 method for class 'tune.rrmix'
plot(
  x,
  metric = c("bic", "soft.class.err", "hard.class.err", "est.err", "pred.err"),
  col = "blue",
  main = NULL,
  xlab = NULL,
  ylab = NULL,
  swapxy = FALSE,
  transform.x = NULL,
  transform.y = NULL,
  transform.z = NULL,
  color.palette = hsv_palette(),
  nlevels = 20,
  ...
)

Arguments

x

an object of class rrmix or tune.rrmix.

pch.L

symbol to use for displaying log-likelihood.

pch.F

symbol to use for displaying penalized log-likelihood.

col.L

color code or name for displaying log-likelihood.

col.F

color code or name displaying penalized log-likelihood.

lty.L

line type for displaying log-likelihood.

lty.F

line type for displaying penalized log-likelihood.

type

character indicating the type of plotting.

...

Other arguments for future usage.

metric

performance metric to use for finding best ‘rrmix’ model. ‘soft.class.err’, ‘hard.class.err’, ‘est.err’, and ‘pred.err’ can only be used when true parameter values are known.

col

the color(s) of the surface facets. Transparent colors are ignored.

main

main title.

xlab

title for the x-axis.

ylab

title for the y-axis.

swapxy

if TRUE, the parameter axes are swaped (only used in case of two parameters).

transform.x, transform.y, transform.z

functions to transform the parameters (x and y) and the error measures (z). Ignored if NULL.

color.palette

color palette used in contour plot.

nlevels

number of levels used in contour plot.


[Package rrMixture version 0.1-2 Index]