Skip to content

clean up basic geom conversion code #203

@tdhock

Description

@tdhock

My original design for ggplotly included the concept of a "basic" geom which can be directly translated to plotly traces. This simplifies the conversion code since many geoms can be easily converted to a small subset of basic geoms. For example, geom_path is a basic geom, and geom_line and geom_segment are both converted to a path before being converted to a plotly trace. These conversions are implemented in the list of functions toBasic, in trace_generation.R.

I noticed that there are some issues with the current basic geom conversion code:

bar and point are present, but should not be (they are basic geoms).

hline, vline, abline are present, but are not treated as a basic form of geom_path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions