Description Usage Arguments Value Examples
View source: R/plot.invsampling.R
The function plot.invsample() plots the empirical distribution function of the sampled values
1 2 | ## S3 method for class 'invsample'
plot(inv_sample, ggplot = FALSE)
|
ggplot |
indicates if you want to use ggplot; please note that ggplot has to be installed in this case |
returns a plot of the empirical distribution function
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.