Learn R Programming

BMhyd (version 1.2-8)

ContourFromAdaptiveSampling: Contour maps

Description

This function generates the countour 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 countour plots for the parameter of interest. It uses the simulated data from generating the confidence interval under adapative sampling technique where the likelihood value and parameters values are stored. Then it uses the function Plot_ConvexHull to generate the contour maps.

References

Jhwueng D.C. and O'Meara B.C. 2015. Studying trait evolution in hybrid species on phylogenetic networks. Submitted.

Examples

Run this code
	#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