Description Usage Arguments Author(s) See Also Examples
View source: R/60-hzarPlottingNew.R
Plots a line representing the expected frequency versus distance for the given object. For hzar.dataGroup and hzar.obsDataGroup objects, plots the observed data backing the model. For hzar.obsDataGroup objects, plots the maximum likelihood cline for each model.
1 | hzar.plot.cline(cline, add = FALSE, ylim=FALSE, ...)
|
cline |
A hzar.cline, hzar.dataGroup or hzar.obsDataGroup object. |
add |
Add to an existing plot if TRUE. |
ylim |
Grapical parameter passed to |
... |
Arguments to be passed to methods, such as graphical
parameters (see |
Graham Derryberry asterion@alum.mit.edu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(manakinMolecular);
mknAdaA <-
hzar.doMolecularData1DPops(manakinMolecular$distance,
manakinMolecular$ada.A,
manakinMolecular$ada.nSamples);
hzar.plot.obsData(mknAdaA);
mknAdaAmodel <-
hzar.makeCline1DFreq(mknAdaA, scaling="fixed",tails="none");
mknAdaAmodel <-
hzar.model.addBoxReq(mknAdaAmodel,-30,600);
mknAdaAmodelFitR <-
hzar.first.fitRequest.old.ML(model=mknAdaAmodel ,
mknAdaA,
verbose=FALSE);
mknAdaAcline <- hzar.gen.cline(list(center=300,width=10),
mknAdaAmodelFitR);
hzar.plot.cline(mknAdaAmodelFitR);
hzar.plot.cline(mknAdaAcline,add=TRUE);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.