MaxWiK.ggplot.density | R Documentation |
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")
)
title |
Title of the plot |
datafr1 |
data frame 1 |
datafr2 |
data frame 2 |
var.df |
Variables to show |
obs.true |
True observation if so, NULL by default |
best.sim |
The best point from a simulation if so, NULL by default |
clrs |
Colors to plot, by default it is c( "#a9b322", "#f9b3a2", 'red', 'blue' ) |
alpha |
Transparency values for density plots |
lw |
Line widths |
lt |
Line types |
Make and return the ggplot object of the densities of the data frames
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.