plot.pi: Simple estimate of pi using a simulation

Description Usage Arguments Value Author(s) Examples

Description

Plot an objet of class "pi" usually created by estimate_pi

Usage

1
2
## S3 method for class 'pi'
plot(x)

Arguments

x

A class (pi) used to pass the points of a simulation into a graph

Value

A plot containing the circle,square and all the points

Author(s)

Julien Kleinmann, Constance Havret, Lumia Claramunt, Sana Ghali, Azza Akamoun

Examples

1
2
3
x <- estimate_pi( B=5000, seed = 10)

plot.pi(x)

JulienKleinmann/ptds2018hw4g4 documentation built on May 8, 2019, 8:53 p.m.