Skip to contents

sugarglider provides ggplot2 extensions to create glyph maps that visualize seasonal aspects of spatio-temporal data with geom_glyph_ribbon() and geom_glyph_segment().

These functions create a ribbon or segment geometry designed to display glyphs based on the combination of x_major and y_major. For each x_minor value, geom_glyph_ribbon() displays a y interval defined by ymin_minor and ymax_minor. Meanwhile, geom_glyph_segment() draws a straight line between y_minor and yend_minor with respect to x_minor.

Installation

sugarglider is available on CRAN:

install.packages("sugarglider")

You can also install the latest development version directly from GitHub:

# install.packages("devtools")
devtools::install_github("maliny12/sugarglider")

Usage

See the examples page to learn more about how to use sugarglider in your project.

Generate glyph-maps with leaflet. Generate interactive glyphs with ggiraph Add ribbon legend to the glyph map. Color by year