as.data.frame.mandelbrot {mandelbrot} | R Documentation |
Convert Mandelbrot object to data.frame for plotting
Description
Converts objects produced by mandelbrot
to tidy data.frames for use with ggplot and other tidyverse packages.
Usage
## S3 method for class 'mandelbrot'
as.data.frame(x, ...)
Arguments
x |
a Mandelbrot set object produced by |
... |
ignored |
Value
a 3-column data.frame
Examples
mb <- mandelbrot()
df <- as.data.frame(mb)
head(df)
[Package mandelbrot version 0.2.0 Index]