plot.invsample: plot.invsample

Description Usage Arguments Value Examples

View source: R/plot.invsampling.R

Description

The function plot.invsample() plots the empirical distribution function of the sampled values

Usage

1
2
## S3 method for class 'invsample'
plot(inv_sample, ggplot = FALSE)

Arguments

ggplot

indicates if you want to use ggplot; please note that ggplot has to be installed in this case

Value

returns a plot of the empirical distribution function

Examples

1
2
3
4
5
6
7
8
Finv <- function(x){-log(1-x)}
F_dist <- function(x){1-exp(-x)}

inv_samples <- inv_sample(Finv, N = 10000)
inv_samples_withF <- inv_sample(Finv, N = 10000, F_distribution = F_dist)

plot(inv_samples)
plot(inv_samples_withF)

aumath-advancedr2019/ACM_2019 documentation built on Nov. 26, 2019, 2:07 a.m.