Skip to content

Commit 83a49f6

Browse files
committed
Merge pull request #162 from ldecicco-USGS/master
Getting rid of bad data.
2 parents 852c6b4 + 340c203 commit 83a49f6

File tree

5 files changed

+16
-58
lines changed

5 files changed

+16
-58
lines changed

R/gsplot.R

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,3 @@ NULL
4848
#' head(MaumeeDV)
4949
NULL
5050

51-
#' Example Unit Data
52-
#'
53-
#' Example data representing data from the Maumee River at Waterville OH (discharge)
54-
#'
55-
#' @name MaumeeUV
56-
#' @docType data
57-
#' @examples
58-
#' \dontrun{
59-
#'
60-
#' library(dataRetrieval)
61-
#'
62-
#' sites <-c("04193490","04193500")
63-
#'
64-
#' begin <- "1981-10-01"
65-
#' end <- "2011-09-30"
66-
#'
67-
#' pCodes <- c("00060","00010","00400")
68-
#' statCd <- c("00003", "00008")
69-
#'
70-
#' MaumeeUV <- readNWISuv(sites[2],"00060")
71-
#' MaumeeUV <- renameNWISColumns(MaumeeUV)
72-
#' }
73-
#' head(MaumeeUV)
74-
NULL

R/rect.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@
2727
#' lines(x=2:6, y=2:6, ylim=c(0,10)) %>%
2828
#' axis(side=c(1,2),labels=TRUE) %>%
2929
#' legend("topright") %>%
30-
#' rect(xleft=3.4, xright=3.6, ybottom=5, ytop=7, density=NA, border='purple', lty=2, lwd=3)
30+
#' rect(xleft=3.4, xright=3.6, ybottom=5,
31+
#' ytop=7, density=NA, border='purple',
32+
#' lty=2, lwd=3)
3133
#' gs
3234
#'
3335
#' gs <- gsplot() %>%
34-
#' lines(x=10:20, y=c(10:15, 25, 17:20), xlim=c(0,30), ylim=c(0,30), col='darkgreen', legend.name="Some data") %>%
35-
#' rect(xleft=15, xright=17, ybottom=21, ytop=27, density=10, angle=130, col='darkblue')
36+
#' lines(x=10:20, y=c(10:15, 25, 17:20),
37+
#' xlim=c(0,30), ylim=c(0,30), col='darkgreen',
38+
#' legend.name="Some data") %>%
39+
#' rect(xleft=15, xright=17, ybottom=21, ytop=27,
40+
#' density=10, angle=130, col='darkblue')
3641
#' gs
3742
rect <- function(object, ...) {
3843
override("graphics", "rect", object, ...)

data/MaumeeUV.RData

-240 KB
Binary file not shown.

man/MaumeeUV.Rd

Lines changed: 0 additions & 28 deletions
This file was deleted.

man/rect.Rd

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,17 @@ gs <- gsplot() \%>\%
3535
lines(x=2:6, y=2:6, ylim=c(0,10)) \%>\%
3636
axis(side=c(1,2),labels=TRUE) \%>\%
3737
legend("topright") \%>\%
38-
rect(xleft=3.4, xright=3.6, ybottom=5, ytop=7, density=NA, border='purple', lty=2, lwd=3)
38+
rect(xleft=3.4, xright=3.6, ybottom=5,
39+
ytop=7, density=NA, border='purple',
40+
lty=2, lwd=3)
3941
gs
4042

4143
gs <- gsplot() \%>\%
42-
lines(x=10:20, y=c(10:15, 25, 17:20), xlim=c(0,30), ylim=c(0,30), col='darkgreen', legend.name="Some data") \%>\%
43-
rect(xleft=15, xright=17, ybottom=21, ytop=27, density=10, angle=130, col='darkblue')
44+
lines(x=10:20, y=c(10:15, 25, 17:20),
45+
xlim=c(0,30), ylim=c(0,30), col='darkgreen',
46+
legend.name="Some data") \%>\%
47+
rect(xleft=15, xright=17, ybottom=21, ytop=27,
48+
density=10, angle=130, col='darkblue')
4449
gs
4550
}
4651

0 commit comments

Comments
 (0)