Learn R Programming

sbpiper (version 1.9.0)

plot_sampled_2d_ple: Plot 2D profile likelihood estimations.

Description

Plot 2D profile likelihood estimations.

Usage

plot_sampled_2d_ple(df, parameter1, parameter2, fileout, title = "",
  logspace = TRUE, scientific_notation = TRUE)

Arguments

df

the data set containing the parameter estimates to plot.

parameter1

the name of the first parameter

parameter2

the name of the second parameter

fileout

the output file

title

the plot title (default: "")

logspace

true if the parameters should be plotted in logspace (default: TRUE)

scientific_notation

true if the axis labels should be plotted in scientific notation (default: TRUE)

Examples

Run this code
# NOT RUN {
dir.create(file.path("pe_plots"))
data(insulin_receptor_all_fits)
colnames(insulin_receptor_all_fits)[1] <- "ObjVal"
insulin_receptor_all_fits[,2:4] <- log10(insulin_receptor_all_fits[,2:4])
fileout <- file.path("pe_plots", "2d_ple_k1_k2.pdf")
plot_sampled_2d_ple(df=insulin_receptor_all_fits, 
                    parameter1="k1", 
                    parameter2="k2", 
                    fileout=fileout) 
# }

Run the code above in your browser using DataLab