
Neon Ghosts with Ggplot2
Make your own glowing, wiggly ghosts in R with a dash of randomness and a lot of neon.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Make your own glowing, wiggly ghosts in R with a dash of randomness and a lot of neon.
Ever wanted to make a haunted house in R? Here’s a quick and fun way to conjure up a whole gang of neon ghosts using ggplot2. Each ghost is a little different — some tall, some stout, all a bit wobbly—thanks to a shape generator that randomizes their size and wiggle.
The plotting function layers up neon glows for the outline, eyes, and mouth, then adds a faint fill and solid black features for that classic ghostly look. Try running it a few times to see what kind of spectral friends you get!
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。