Skip to content

Internal CoordCartesian updates break downstream packages #3561

Closed
@paleolimbot

Description

@paleolimbot

In #3356, the panel_params generated by CoordCartesian were changed so that panel_params$x and panel_params$y are scale-like objects. Internally we use panel_params$x.range and panel_params$y.range (the x and y scale limits), so these were kept for backward compatibility. This change broke a number of downstream packages (e.g., #3436 and multiple reverse dependency failures). We should consider adding back the following elements to ease this transition:

  • x.labels
  • y.labels
  • x.major.source
  • y.major.source
  • x.minor.source
  • y.minor.source

Thoughts on this @thomasp85? Also tagging @cpsievert since he was the first one to notice this change.

This is where one would add these parameters back in:

view_scales <- list(
view_scale_primary(scale, limits, continuous_range),
sec = view_scale_secondary(scale, limits, continuous_range),
arrange = scale$axis_order(),
range = continuous_range
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions