Skip to content

Commit

Permalink
Merge pull request #311 from lindsaycarr/master
Browse files Browse the repository at this point in the history
axis: n.minor use auto axis ticks if "at" hasn't been user-specified
  • Loading branch information
Lindsay Carr committed Feb 22, 2016
2 parents f845477 + bc9fa59 commit 21368af
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions R/axis.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,16 @@ draw_axis <- function(gsplot, index.axis) {
} else {
axis(axisParams)
n.minor <- n.minor + 1
#Minor axis:
at <- axTicks(axisParams$side)

# Minor axis:

#if user hasn't specified "at", calculate it
if(is.null(axisParams$at)){
at <- axTicks(axisParams$side)
} else {
at <- axisParams$at
}

newAT <- c()

if(axisParams$side %% 2 == 0){
Expand Down

0 comments on commit 21368af

Please sign in to comment.