Git Product home page Git Product logo

Comments (10)

lgatto avatar lgatto commented on May 25, 2024 2

@lgatto, should I keep the issue open until you fixed yours?

Leave it for now, I'll close once I get time to update mine.

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024 1

@jotsetung I use npc, see https://github.com/GuangchuangYu/ggimage/blob/master/R/geom_subview.R#L41-L44. The width and height are expected to be in proportion to the plot.

It seems the npc is actually native (maybe a bug), so width and height work as in native unit.

## make no sense XD
> require(grid)
Loading required package: grid
> plot(1:10)
> pushViewport(viewport())
> convertX(unit(.9,"npc"),"native")
[1] 0.9native

please go ahead to update your script 🙈, I have no idea why this happened.

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024

sorry, should be the last time.

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024

maybe wait a second. Let me see if I can add a parameter to switch from different units

from biocstickers.

jorainer avatar jorainer commented on May 25, 2024

No prob @GuangchuangYu - that's what can be expected when using a devel version.

from biocstickers.

jorainer avatar jorainer commented on May 25, 2024

@GuangchuangYu , you are not changing hexStickers now, are you?

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024

@jotsetung no.

from biocstickers.

jorainer avatar jorainer commented on May 25, 2024

OK, fixed all of my stickers.
@lgatto, should I keep the issue open until you fixed yours?

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024

with new version, it is easier to generate treeio sticker.

from biocstickers.

GuangchuangYu avatar GuangchuangYu commented on May 25, 2024
updated s_width = original s_width * sqrt(3)
updated s_height = original s_height * 2

from biocstickers.

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.