pmx_dens: Creates a density plot object

View source: R/plot-density.R

pmx_densR Documentation

Creates a density plot object

Description

Creates a density plot object

Usage

pmx_dens(
  x,
  labels,
  dname = NULL,
  xlim = 3,
  var_line = NULL,
  snd_line = NULL,
  vline = NULL,
  is.legend = TRUE,
  ...
)

Arguments

x

character variable name to sample

labels

list of texts/titles used within the plot

dname

name of dataset to be used

xlim

numeric x axis limits

var_line

list variable density graphics parameters

snd_line

list normal density graphics parameters

vline

list vertical line graphics parameters

is.legend

logical whether to add a legend (defaults TRUE)

...

others graphics arguments passed to pmx_gpar internal object.

Details

labels is a list that contains:

  • title: plot title default "IWRES density plot"

  • x: x axis label default to "Etas"

  • y: y axis label default to empty

var_line is a list that contains:

  • linetype: default to 1

  • color: default to black

  • size: default to 1

snd_line is a list that contains:

  • linetype: default to 2

  • color: default to black

  • size: default to 1

vline is a list that contains:

  • linetype: default to 3

  • color: default to black

  • size: default to 1


ggPMX documentation built on June 18, 2022, 1:05 a.m.