Density plot in 1d using R's base graphics

density_1d_graphics(
  zargs,
  density... = NULL,
  offset = 0.08,
  add = FALSE,
  plot... = NULL,
  ...
)

Arguments

zargs

argument list as passed from zenplot()

density...

list of arguments for density()

offset

number in [0, 0.5] determining how far away the density stays from the plot margins (for creating space between the two)

add

logical indicating whether this plot should be added to the last one

plot...

additional arguments passed to plot_region()

...

additional arguments passed to polygon()

Value

invisible()

Author

Marius Hofert and Wayne Oldford