Skip to content

Geom not exported? #989

Closed
Closed
@bergsmat

Description

@bergsmat

Hi!

Thanks for the help at https://github.com/hadley/ggplot2/wiki/Creating-a-new-geom .

The link to sample code breaks, so I harvested code from the page and added ggplot(data=data.frame(x=5,y=5,angle=pi/6,length=0.2),mapping=aes(x=x,y=y,angle=angle,length=length)) + layer(geom='field').

I had to change Geom to ggplot2:::Geom apparently because Geom is not exported. Will that survive modern CRAN check? Also, my example above gives Error: attempt to apply non-function. It would be very useful to author new geoms for use with particular data types. Thanks in advance for any comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions