Learn R Programming

mandelbrot (version 0.2.0)

as.data.frame.mandelbrot: 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 mandelbrot
as.data.frame(x, ...)

Arguments

x

a Mandelbrot set object produced by mandelbrot

...

ignored

Value

a 3-column data.frame

Examples

Run this code
# NOT RUN {
mb <- mandelbrot()
df <- as.data.frame(mb)
head(df)

# }

Run the code above in your browser using DataLab