plot_fit_2: A contour plot of the cost function.

Description Usage Arguments Value See Also

View source: R/fitted_plotting.R

Description

A contour plot of the cost function with respect to two admix variables specified by the user.

Usage

1
2
plot_fit_2(object, X, Y, resolution = 10, show_fit = FALSE, sigma = 6,
  grayscale = FALSE, ...)

Arguments

object

The fitted object.

X

An admix variable name (remember quotation marks).

Y

An admix variable name (remember quotation marks).

resolution

How densely is the function evaluated.

show_fit

Should the function plot the number of statistics where the graph fits the data instead of the cost_function?

sigma

If show_fit is TRUE then each statistic is considered fitted if the difference between a prediction and the observation statistics is no more than D*σ/(2*Z). Notice that even when plotting the number of fitted statistics, we have no guarantee that the chosen variables maximize this number as the fitting function still optimizes cost_function.

grayscale

Should the figure be plotted in grayscale or in colour?

...

Additional parameters passed to the plotting function contour.

Value

The matrix of values computed and plotted.

See Also

contour

plot_fit_1


mailund/admixture_graph documentation built on April 3, 2018, 9:28 p.m.