Skip to content

Commit

Permalink
fix issue 135_2
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelley committed Jan 14, 2012
1 parent be09110 commit eaff11f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ Rplots.pdf
src-*
*.swp
TAGS
issue*R
issue*dat
issue*png
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: oce
Version: 0.8-5
Date: 2011-12-20
Date: 2012-01-14
Title: Analysis of Oceanographic data
Author: Dan Kelley <[email protected]>
Maintainer: Dan Kelley <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
0.8-5
- oce.plot.ts(): obey arguments xaxt and yaxt
- improve support for shapefile coastlines

0.8-4
Expand Down
20 changes: 14 additions & 6 deletions R/oce.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,20 +239,28 @@ oce.plot.ts <- function(x, y, type="l", xlim, ylim, xlab="", ylab="",
type=type, cex=cex, ...)
}
if (axes) {
xlabs <- oce.axis.POSIXct(1, x=x, drawTimeRange=drawTimeRange, main=main,
mgp=mgp,
cex=cex.axis, cex.axis=cex.axis, cex.main=cex.main,
debug=debug-1)#, ...)
xaxt <- list(...)["xaxt"]
drawxaxis <- !is.null(xaxt) && xaxt != 'n'
yaxt <- list(...)["yaxt"]
drawyaxis <- !is.null(yaxt) && yaxt != 'n'
if (drawxaxis) {
xlabs <- oce.axis.POSIXct(1, x=x, drawTimeRange=drawTimeRange, main=main,
mgp=mgp,
cex=cex, cex.axis=cex.axis, cex.main=cex.main,
debug=debug-1)#, ...)
}
if (grid) {
lwd <- par("lwd")
abline(v=xlabs, col="lightgray", lty="dotted", lwd=lwd)
if (drawxaxis)
abline(v=xlabs, col="lightgray", lty="dotted", lwd=lwd)
yaxp <- par("yaxp")
abline(h=seq(yaxp[1], yaxp[2], length.out=1+yaxp[3]),
col="lightgray", lty="dotted", lwd=lwd)
}
box()
##cat("cex.axis=",cex.axis,"; par('cex.axis') is", par('cex.axis'), "; par('cex') is", par('cex'), "\n")
axis(2, cex.axis=cex.axis)
if (drawyaxis)
axis(2, cex.axis=cex.axis, cex=cex.axis)
axis(4, labels=FALSE)
}
if (!is.null(adorn)) {
Expand Down

0 comments on commit eaff11f

Please sign in to comment.