Update sticker scripts to new hexSticker version
The last changes to hexSticker (see issue https://github.com/GuangchuangYu/hexSticker/issues/6) break (almost?) all R scripts to create the stickers.
Update the scripts to create the stickers using the new hexSticker package.
sorry, should be the last time.
maybe wait a second. Let me see if I can add a parameter to switch from different units
No prob @GuangchuangYu - that's what can be expected when using a devel version.
@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.
@GuangchuangYu , you are not changing hexStickers now, are you?
@jotsetung no.
OK, fixed all of my stickers. @lgatto, should I keep the issue open until you fixed yours?
with new version, it is easier to generate treeio sticker.
updated s_width = original s_width * sqrt(3)
updated s_height = original s_height * 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.