# \donttest{
set.seed(1)
# Simple example
canvas_planet(colors = colorPalette("lava"), threshold = 3)
# Advanced example
colors <- list(
c("khaki1", "lightcoral", "lightsalmon"),
c("dodgerblue", "forestgreen", "white"),
c("gray", "darkgray", "beige")
)
canvas_planet(colors,
radius = c(800, 400, 150),
center.x = c(1, 500, 1100),
center.y = c(1400, 500, 1000),
starprob = 0.005
)
# }
Run the code above in your browser using DataLab