plot_ratio: Plot the estimated density ratio

Description Usage Arguments Value

Description

Plots the estimated density ratio, the true density ratio, and the true component distributions, on both the original (probability density & ratio) scale as well as the log scale (log density and log ratio).

Usage

1
2
plot_ratio(ratio_obj, output_directory = NULL,
  plot_height = PLOT_HEIGHT, plot_width = PLOT_WIDTH)

Arguments

ratio_obj

a ratio object produced by make_ratio_obj.

output_directory

defaults to NULL, if not null, should be a file.path that points to a directory where the pdf of the plot will be saved.

plot_height

output pdf plot height in inches(?)

plot_width

output pdf plot width in inches(?)

...

other arguments to be passed to ggsave.

Value

a ggplot2 object


hhau/sugiyamastudy documentation built on May 7, 2019, 9:20 p.m.