mitchelloharawild / ggquiver

R package for quiver plots in 'ggplot2'
http://pkg.mitchelloharawild.com/ggquiver
50 stars 3 forks source link

Computation failed in `stat_quiver()`: argument is of length zero #8

Closed mps9506 closed 2 years ago

mps9506 commented 2 years ago

Hi! Thanks for this great package. geom_quiver() is returning the following warning (with no output) when I try to reproduce the examples in the package:

Warning message:
Computation failed in `stat_quiver()`:
argument is of length zero 

I noticed the pkgdown documentation is showing the same error.

Reprex:

library(ggplot2)
library(ggquiver)
library(dplyr)

expand.grid(x=seq(0,pi,pi/12), y=seq(0,pi,pi/12)) %>%
  ggplot(aes(x=x,y=y,u=cos(x),v=sin(y))) +
  geom_quiver()

Thanks!

mitchelloharawild commented 2 years ago

Fixed, thanks!

mitchelloharawild commented 2 years ago

A patch release has been submitted to CRAN.