as.data.frame.mandelbrot: Convert Mandelbrot object to data.frame for plotting

Description Usage Arguments Value Examples

Description

Converts objects produced by mandelbrot to tidy data.frames for use with ggplot and other tidyverse packages.

Usage

1
2
## S3 method for class 'mandelbrot'
as.data.frame(x, ...)

Arguments

x

a Mandelbrot set object produced by mandelbrot

...

ignored

Value

a 3-column data.frame

Examples

1
2
3
mb <- mandelbrot()
df <- as.data.frame(mb)
head(df)

blmoore/mandelbrot documentation built on May 31, 2019, 8:05 a.m.