plot.MC_integral: plot.MC_integral

Description Usage Arguments Examples

View source: R/plot.MC_integral.R

Description

The function plot.MC_integral plots the integrand of a corresponding MC integration

Usage

1
2
## S3 method for class 'MC_integral'
plot(MC, ggplot = FALSE)

Arguments

MC

output of a Monte Carlo integration

ggplot

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

Examples

1
2
3
f <- function(x){x^2}
MCint <- int(f, -2, 2)
plot(MCint)

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