Skip to contents

The dplot functions plot data passed to a gadget3 model instead of data from the model or fit objects.

Usage

dplot_ldist(x, type = "bar", scales = "free_y", base_size = 8)

Arguments

x

A gadget3 ready data frame created using mfdb, g3_data or add_g3_attributes.

type

Character specifying the plot type: "bar", "ggridges" or "line"

scales

Character defining the facet_wrap scales argument to use.

base_size

Base size parameter for ggplot. See ggtheme.

Value

A ggplot object.

Examples

data(ldist_example)
dplot_ldist(ldist_example)

dplot_ldist(ldist_example, type = "ggridges")

dplot_ldist(ldist_example, type = "line")