Giter Club home page Giter Club logo

Comments (3)

teunbrand avatar teunbrand commented on July 24, 2024

I like the idea, but I don't think it makes sense for us to implement as {ggfx} can do this (and more) without us having to lift a finger.

library(ggfx)
#> Warning: package 'ggfx' was built under R version 4.1.1
library(geomtextpath)
#> Loading required package: ggplot2

t <- seq(5, -1, length.out = 1000) * pi

spiral <- data.frame(x    = sin(t) * 1:1000, 
                     y    = cos(t) * 1:1000,
                     text = paste("Like a circle in a spiral,",
                                  "like a wheel within a wheel,",
                                  "never ending or beginning,",
                                  "on an ever spinning reel")
)

ggplot(spiral, aes(x, y, label = text)) +
  with_outer_glow(
    geom_textpath(size = 7, vjust = 2, text_only = TRUE, colour = "white"),
    sigma = 0, expand = 2
  ) +
  coord_equal(xlim = c(-1500, 1500), ylim = c(-1500, 1500))

Created on 2022-01-15 by the reprex package (v2.0.1)

from geomtextpath.

teunbrand avatar teunbrand commented on July 24, 2024

A small note: once R4.2.0 comes out, it might make sense to do outlined text as it becomes part of the grid package. See https://www.stat.auckland.ac.nz/~paul/Reports/GraphicsEngine/paths/paths.html, 2nd paragraph, 4th example

from geomtextpath.

albert-ying avatar albert-ying commented on July 24, 2024

Wow thank you so much! I didn't know that the ggfx can work here.

from geomtextpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.