draw_key_moon: Moon key glyph for legends

Description Usage Arguments Details Value

View source: R/geom_moon.R

Description

Draws the legend key glyphs used in geom_moon.

Usage

1
2
3
4
5
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.


gggibbous documentation built on Jan. 13, 2021, 6:51 a.m.