{bitmexr} gets a hex logo!

R Bitcoin bitmexr

Steps to create a simple hex logo using the {hexSticker} package.

Harry Fisher https://www.hfshr.xyz
11-22-2020

Hex logos are ubiquitous with R packages, and I had been meaning to create one for my bitmexr package for a while. For one reason or another I never quite got round to it, but that changes today! I thought I’d note down the steps I took here for future reference.

A quick google of “how to create R hex logo” pointed me towards the hexSticker package, which I promptly installed and set to work. After having a look at some of the examples on https://github.com/GuangchuangYu/hexSticker, I opted for a really simple design (I was never much of an artist 😆) using the following code:

library(hexSticker)

sticker("/home/harry/Desktop/Bitcoin-Logo.png",
        package="bitmexr",
        p_size=20,
        s_x=1,
        s_y=0.75,
        s_width = 0.9,
        s_height = 0.9,
        h_fill = "#000000",
        h_color = "#f2a900",
        asp = 0.9,
        filename="hex.png")

The end result looks like this

knitr::include_graphics("hex.png")

Not particularly imaginative, but I’m happy with it as a first attempt!

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Fisher (2020, Nov. 22). Data, Code & Coffee: {bitmexr} gets a hex logo!. Retrieved from https://hfshr.xyz/posts/2020-11-22-bitmexr-logo/

BibTeX citation

@misc{fisher2020{bitmexr},
  author = {Fisher, Harry},
  title = {Data, Code & Coffee: {bitmexr} gets a hex logo!},
  url = {https://hfshr.xyz/posts/2020-11-22-bitmexr-logo/},
  year = {2020}
}