好玩的R包,用起来很简单。
library(flametree)
# pick some colours
shades <- c("#1b2e3c", "#0c0c1e", "#74112f", "#f3e3e2")
# data structure defining the trees
dat <- flametree_grow(time = 10, trees = 10)
# draw the plot
dat %>%
flametree_plot(
background = "antiquewhite",
palette = shades,
style = "nativeflora"