draw_key_moon {gggibbous}R Documentation

Moon key glyph for legends

Description

Draws the legend key glyphs used in geom_moon.

Usage

draw_key_moon(data, params, size)

draw_key_moon_left(data, params, size)

draw_key_full_moon(data, params, size)

Arguments

data

A single row data frame containing the scaled aesthetics to display in this key

params

A list of additional parameters supplied to the geom.

size

Width and height of key in mm.

Details

draw_key_moon (the default in geom_moon) draws a gibbous moon filled from the right. draw_key_moon_left draws a crescent moon from the right. draw_key_full_moon draws a circle, which is very similar to draw_key_point in ggplot2, but the size is calculated slightly differently and the default aesthetics differ.

Value

A grid grob.


[Package gggibbous version 0.1.1 Index]