Skip to content

Commit

Permalink
Merge pull request #37 from idemockle/fix_na_limits
Browse files Browse the repository at this point in the history
Fix case where user passes in NA upper and/or lower bounds
  • Loading branch information
eclarke committed Jun 14, 2018
2 parents bf32c51 + 5464db5 commit 7e620a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/position-beeswarm.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ PositionBeeswarm <- ggplot2::ggproto("PositionBeeswarm",ggplot2:::Position, requ

getScaleDiff<-function(scales){
if(is.null(scales$limits))lims<-scales$range$range
else lims<-scales$limits
else lims<-scales$get_limits()
if(inherits(scales,'ScaleContinuous')){
limDiff<-diff(lims)
}else if(inherits(scales,'ScaleDiscrete')){
Expand Down

0 comments on commit 7e620a7

Please sign in to comment.