powered by
Density plot
MaxWiK.ggplot.density( title = "", datafr1, datafr2, var.df, obs.true = NULL, best.sim = NULL, clrs = c("#a9b322", "#f9b3a2", "red", "blue"), alpha = c(0.1, 0.4), lw = c(0.7, 0.7), lt = c("dashed", "dotted") )
Make and return the ggplot object of the densities of the data frames
Title of the plot
data frame 1
data frame 2
Variables to show
True observation if so, NULL by default
The best point from a simulation if so, NULL by default
Colors to plot, by default it is c( "#a9b322", "#f9b3a2", 'red', 'blue' )
Transparency values for density plots
Line widths
Line types
MaxWiK::MaxWiK_templates(dir = tempdir()) # See the templates and vignettes for usage. # Function 'MaxWiK.ggplot.density()' is used in the MaxWiK.ABC.R and # MaxWiK.Predictor.R templates.
Run the code above in your browser using DataLab