knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
R package for creating hexagon shaped xy data frames.
To get the current development version from Github:
## install devtools package if it's not already if (!requireNamespace("devtools", quietly = TRUE)) { install.packages("devtools") } ## install dev version of hexagon from github devtools::install_github("mkearney/hexagon") ## load rtweet package library(hexagon)
## create hexagon xy data frame using argument defaults hex1 <- hexdf() ## plot outline of hexagon with(hex1, plot(x, y, type = "l"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.