New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geom not exported? #989

bergsmat opened this Issue Jul 18, 2014 · 2 comments


None yet
3 participants

bergsmat commented Jul 18, 2014


Thanks for the help at .

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.

@hadley hadley closed this in c77c3bc Jun 12, 2015


This comment has been minimized.


lionel- commented Jun 13, 2015

The other proto objects Stat and Position should be exported too as they can be useful to extend ggplot.

Here is an example where I derived from Stat:

@hadley hadley reopened this Jun 13, 2015


This comment has been minimized.


hadley commented Jun 13, 2015

I was just waiting for someone to ask for them ;)

@hadley hadley closed this in 5f66cd2 Jun 15, 2015

@lock lock bot locked as resolved and limited conversation to collaborators Jun 20, 2018

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