Learn R Programming

sbpiper (version 1.9.0)

plot_parameter_density: Plot parameter density.

Description

Plot parameter density.

Usage

plot_parameter_density(df, parameter, fileout, title = "", logspace = TRUE,
  scientific_notation = TRUE)

Arguments

df

the data set containing the parameter estimates to plot.

parameter

the name of the parameter to plot the density

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", "dens_k1.pdf")
plot_parameter_density(df=insulin_receptor_all_fits, 
                       parameter="k1", 
                       fileout=fileout) 
# }

Run the code above in your browser using DataLab