Learn R Programming

BMhyb (version 1.5.2)

ContourFromAdaptiveSampling: Contour maps

Description

This function generates the contour maps for a pair of parameters of interest.

Usage

ContourFromAdaptiveSampling(sims, params.of.interest=NULL)

Arguments

sims

a data frame with the simulation results.

params.of.interest

name of parameter that is of interest to be plotted.

Value

It returns the plot of the contour map for a pair of parameters.

Details

This function generates the contour plots for the parameter of interest. It uses the simulated data from generating the confidence interval under adaptive sampling method where the likelihood value and parameters values are stored. Then it uses the function PlotConvexHull to generate the contour maps.

References

Jhwueng D.C. and O'Meara B.C. 2016. Studying trait evolution on phylogenetic networks. Submitted.

Examples

Run this code
# NOT RUN {
	#simulate a data frame for two parameters
	sims<-matrix(rnorm(300),ncol=3)
	sims<-as.data.frame(sims)
	colnames(sims)<-c("neglnL","param1","param2")
	#plot the contour map for the parameters
	ContourFromAdaptiveSampling(sims, params.of.interest=NULL)
	
# }

Run the code above in your browser using DataLab