Learn R Programming

geocausal (version 0.3.4)

plot.obs: Plot observed densities

Description

Plot observed densities

Usage

# S3 method for obs
plot(x, ..., dens_2 = NA, dens_3 = NA, time_unit = NA, combined = TRUE)

Arguments

x

input

...

arguments passed on to the function

dens_2

density 2 (if any). By default, `NA`.

dens_3

density 3 (if any). By default, `NA`.

time_unit

x-axis label of the output

combined

whether to combine the two plots. By default, TRUE. If TRUE, then the plot function produces one ggplot object. If FALSE, three objects (two ggplot and one dataframe) will be produced.