arrowGrob: Create a grob representing an arrow

View source: R/metR_ArrowGrob.R

arrowGrobR Documentation

Create a grob representing an arrow

Description

Function to create a grob representing an arrow.

Usage

arrowGrob(x, y, angle, length, pivot, default.units = "npc", ...)

Arguments

x

: x-axis location of base (passed on to grid::grob())

y

: y-axis location of base (passed on to grid::grob())

angle

: angle of shaft (passed on to grid::grob())

length

: length of shaft (passed on to grid::grob())

pivot

: passed on to grid::grob()

default.units

: (passed on to grid::grob())

...

: passed on to grid::grob()

Details

Code stolen from from Elio Campitelli (https://github.com/eliocamp/metR) and adapted by WTS. Uses grid::grob() with cl="arrow2".

Value

a grid grob.


wStockhausen/wtsGIS documentation built on Aug. 23, 2023, 2:31 a.m.