Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mkearney/hexagon

◀️⏹▶️ R package for creating hexagon shaped xy data frames.
https://github.com/mkearney/hexagon

hex-sticker hexagon hexbin hexo hexsticker mkearney-r-package r-package r-packages rstats stickers

Last synced: 3 months ago
JSON representation

◀️⏹▶️ R package for creating hexagon shaped xy data frames.

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

# hexagon

[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)

R package for creating hexagon shaped xy data frames.

## Installation

To get the current development version from Github:

```{r, eval=FALSE}
## 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)
```

## Usage

```{r, eval=FALSE}
## create hexagon xy data frame using argument defaults
hex1 <- hexdf()

## plot outline of hexagon
with(hex1, plot(x, y, type = "l"))
```