Skip to content

export translate_shape_string() #5191

Closed

Description

@aphalo

Function translate_shape_string() or a replacement of it is needed in packages extending 'ggplot2' with geoms that accept the shape aesthetic, such as my package 'ggpp'. I have copied the definition of translate_shape_string() from 'ggplot2' into 'ggpp' but this could lead to inconsistencies in the future, for example in error handling and messages.

It would be convenient if 'ggplot2' would export this function, although the workaround of redefining it when needed is obviously fully functional.

Activity

  1. changed the title [-]export translate_shape_string()[/-] [+]export `translate_shape_string()`[/+] on Feb 19, 2023
  2. smouksassi commented on Feb 19, 2023

    @smouksassi

    yes, this would be very useful.
    I also think it can be useful to have a blank shape similar to "blank" linetype

  3. added
    feature
    on Feb 19, 2023
  4. teunbrand commented on Feb 19, 2023

    @teunbrand
    Collaborator

    I must admit: I also would have needed this at some point, but then went the lazy route and not translating point shapes.

    @smouksassi there is #5143 that introduces "blank" and "dot" as new shape names

    EDIT: We've decided against #5143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureinternals 🔎

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions