You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
toggplot2:::Geom
apparently because Geom is not exported. Will that survive modern CRAN check? Also, my example above givesError: 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.The text was updated successfully, but these errors were encountered: