NAME

Chart::GGPlot::Coord - The role for coordinates

VERSION

version 0.002002

DESCRIPTION

This module is a Moose role for "coord".

For users of Chart::GGPlot you would mostly want to look at Chart::GGPlot::Coord::Functions instead.

CLASS METHODS

is_linear

is_linear()

Returns true if the coordinate system is linear; false otherwise.

METHODS

render_bg($panel_params, $theme)

Renders background elements.

render_axis_h($panel_params, $theme)

Renders the horizontal axes.

render_axis_v($panel_params, $theme)

Renders the vertical axes.

range($panel_params)

Returns the x and y ranges.

transform($data, $range)

Transforms x and y coordinates.

distance($x, $y, $panel_params)

Calculates distance.

setup_data($data, $params)

Allows the coordinate system to manipulate the plot data. Returns a hash ref of dataframes.

setup_layout($layout, $params)

Allows the coordinate system to manipulate the "layout" data frame which assigns data to panels and scales.

AUTHOR

Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019-2023 by Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.