# This code shows the famous Mandelbrot figure in total, just in the
# opposite way as usual: the Mandelbrot set itself is colored, while the
# points outside are uniformly black.
# Adjust xlim and ylim to zoom in wherever you like.
# \donttest{
phasePortrait(mandelbrot,
xlim = c(-2.3, 0.7),
ylim = c(-1.2, 1.2),
hsvNaN = c(0, 0, 0),
nCores = 1) # Max. two cores on CRAN, not a limit for your use
# \dontshow{
# R CMD check: make sure any open connections are closed afterward
foreach::registerDoSEQ()
doParallel::stopImplicitCluster()
# }
# }
Run the code above in your browser using DataLab