coord_munch: Munch coordinates data

View source: R/coord-munch.R

coord_munchR Documentation

Munch coordinates data

Description

This function "munches" lines, dividing each line into many small pieces so they can be transformed independently. Used inside geom functions.

Usage

coord_munch(coord, data, range, segment_length = 0.01, is_closed = FALSE)

Arguments

coord

Coordinate system definition.

data

Data set to transform - should have variables x and y are chopped up into small pieces (as defined by group). All other variables are duplicated as needed.

range

Panel range specification.

segment_length

Target segment length

is_closed

Whether data should be considered as a closed polygon.


hadley/ggplot2 documentation built on April 18, 2024, 7:52 p.m.