hrbrmstr / ggalt

:earth_americas: Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
https://cran.r-project.org/web/packages/ggalt/vignettes/ggalt_examples.html
Other
661 stars 99 forks source link

Need an xspline equivalent of geom_path #26

Open DarwinAwardWinner opened 7 years ago

DarwinAwardWinner commented 7 years ago

It seems that geom_xspline is only suitable for use in place of geom_line. Attempting to use it in place of geom_path produces broken results. For example:

mydata <- data.frame(x=c(0,1,0), y=0:2)
ggplot(mydata) + aes(x,y) + geom_path()
ggplot(mydata) + aes(x,y) + geom_xspline()