Skip to content

Geom not exported? #989

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

Closed
bergsmat opened this issue Jul 18, 2014 · 2 comments
Closed

Geom not exported? #989

bergsmat opened this issue Jul 18, 2014 · 2 comments

Comments

@bergsmat
Copy link

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.

@hadley hadley closed this as completed in c77c3bc Jun 12, 2015
@lionel-
Copy link
Member

lionel- commented Jun 13, 2015

@hadley
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: http://stackoverflow.com/questions/10071944/ggplot2-geom-point-with-binned-x-axis-for-binary-data/24995101#24995101

@hadley hadley reopened this Jun 13, 2015
@hadley
Copy link
Member

hadley commented Jun 13, 2015

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

@hadley hadley closed this as completed 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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants