MaxWiK.ggplot.density: Density plot

View source: R/My.Plots.R

MaxWiK.ggplot.densityR Documentation

Density plot

Description

Density plot

Usage

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")
)

Arguments

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

Value

Make and return the ggplot object of the densities of the data frames

Examples

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.

MaxWiK documentation built on April 3, 2025, 8:47 p.m.