Skip to content

Commit 30fe782

Browse files
committed
Rebuild vig and readme
1 parent b9f0fe2 commit 30fe782

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

README.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ arrows(x0 = 1:7, x1 = 1:7,
150150
```{r message=FALSE, warning=FALSE}
151151
errorbarplot <- gsplot() %>%
152152
points(1:7, 1:7) %>%
153-
error_bar(x = 1:7, y = 1:7, y.high = 1, y.low = 1)
153+
error_bar(x = 1:7, y = 1:7, offset.up = 1, offset.down = 1)
154154
errorbarplot
155155
```
156156

@@ -220,7 +220,7 @@ text(x = 1.25:5.25, y = 1.25:5.25,
220220
```{r }
221221
embedplot <- gsplot() %>%
222222
points(1:5, 1:5,
223-
error_bar(y.high = 1, y.low = 0.5),
223+
error_bar(offset.up = 1, offset.down = 0.5),
224224
callouts(labels = paste("pt", 1:5)))
225225
embedplot
226226
```
@@ -278,8 +278,8 @@ points(as.Date("2011-01-15"),2.5, col="blue", pch=20)
278278
demoPlot <- gsplot() %>%
279279
points(y=c(3,1,2), x=1:3, xlim=c(0,NA),ylim=c(0,NA),
280280
col="blue", pch=18, legend.name="Points", xlab="Index",
281-
error_bar(y.high = c(0.5,0.25,1), y.low = 0.1,
282-
x.low=0.2, x.high=0.2, col="red", lwd=2)) %>%
281+
error_bar(offset.up = c(0.5,0.25,1), offset.down = 0.1,
282+
offset.left=0.2, offset.right=0.2, col="red", lwd=2)) %>%
283283
lines(c(3,4,3), c(2,4,6), legend.name="Lines", ylab=expression(paste("Data [ft"^"3","/s]"))) %>%
284284
abline(b=1, a=0, legend.name="1:1") %>%
285285
axis(side=c(3,4), labels=FALSE) %>%

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ arrows(x0 = 1:7, x1 = 1:7,
179179
``` r
180180
errorbarplot <- gsplot() %>%
181181
points(1:7, 1:7) %>%
182-
error_bar(x = 1:7, y = 1:7, y.high = 1, y.low = 1)
182+
error_bar(x = 1:7, y = 1:7, offset.up = 1, offset.down = 1)
183183
errorbarplot
184184
```
185185

@@ -255,7 +255,7 @@ text(x = 1.25:5.25, y = 1.25:5.25,
255255
``` r
256256
embedplot <- gsplot() %>%
257257
points(1:5, 1:5,
258-
error_bar(y.high = 1, y.low = 0.5),
258+
error_bar(offset.up = 1, offset.down = 0.5),
259259
callouts(labels = paste("pt", 1:5)))
260260
embedplot
261261
```
@@ -322,8 +322,8 @@ Improved workflow examples
322322
demoPlot <- gsplot() %>%
323323
points(y=c(3,1,2), x=1:3, xlim=c(0,NA),ylim=c(0,NA),
324324
col="blue", pch=18, legend.name="Points", xlab="Index",
325-
error_bar(y.high = c(0.5,0.25,1), y.low = 0.1,
326-
x.low=0.2, x.high=0.2, col="red", lwd=2)) %>%
325+
error_bar(offset.up = c(0.5,0.25,1), offset.down = 0.1,
326+
offset.left=0.2, offset.right=0.2, col="red", lwd=2)) %>%
327327
lines(c(3,4,3), c(2,4,6), legend.name="Lines", ylab=expression(paste("Data [ft"^"3","/s]"))) %>%
328328
abline(b=1, a=0, legend.name="1:1") %>%
329329
axis(side=c(3,4), labels=FALSE) %>%

inst/doc/gsplotIntro.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ demoPlot <- gsplot() %>%
1010
abline(b=1, a=0, legend.name="1:1") %>%
1111
legend(location="topleft",title="Awesome!") %>%
1212
grid() %>%
13-
error_bar(x=1:3, y=c(3,1,2), y.high=c(0.5,0.25,1), y.low=0.1) %>%
14-
error_bar(x=1:3, y=c(3,1,2), x.low=.2, x.high=.2, col="red",lwd=3) %>%
13+
error_bar(x=1:3, y=c(3,1,2), offset.up=c(0.5,0.25,1), offset.down=0.1) %>%
14+
error_bar(x=1:3, y=c(3,1,2), offset.left=.2, offset.right=.2, col="red",lwd=3) %>%
1515
callouts(x=1, y=2.8, lwd=2, angle=250, labels="Weird data") %>%
1616
title("Graphing Fun")
1717
demoPlot

inst/doc/gsplotIntro.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ demoPlot <- gsplot() %>%
2525
abline(b=1, a=0, legend.name="1:1") %>%
2626
legend(location="topleft",title="Awesome!") %>%
2727
grid() %>%
28-
error_bar(x=1:3, y=c(3,1,2), y.high=c(0.5,0.25,1), y.low=0.1) %>%
29-
error_bar(x=1:3, y=c(3,1,2), x.low=.2, x.high=.2, col="red",lwd=3) %>%
28+
error_bar(x=1:3, y=c(3,1,2), offset.up=c(0.5,0.25,1), offset.down=0.1) %>%
29+
error_bar(x=1:3, y=c(3,1,2), offset.left=.2, offset.right=.2, col="red",lwd=3) %>%
3030
callouts(x=1, y=2.8, lwd=2, angle=250, labels="Weird data") %>%
3131
title("Graphing Fun")
3232
demoPlot
@@ -35,7 +35,7 @@ demoPlot
3535

3636
## Overview
3737

38-
`gsplot` uses similar plotting graphics to R base graphics, but allows users to execute them in a more intuitive manner. Additionally, as the complexity of the plot features increase, `gpslot` code is simplistic compared to that of base graphics. `gsplot` also includes features not present in base graphics that are useful when working with USGS data, such as `callouts` (combines `segments` and `text` into a single call), `error_bar` (allows an error to be given as `y.high`, `y.low`, `x.high`, and `x.low` and automatically builds an error bar), and the argument `legend.name` (an argument within `points`, `lines`, etc. which does not require colors, linetypes, and other par information to be redefined within the `legend` call).
38+
`gsplot` uses similar plotting graphics to R base graphics, but allows users to execute them in a more intuitive manner. Additionally, as the complexity of the plot features increase, `gpslot` code is simplistic compared to that of base graphics. `gsplot` also includes features not present in base graphics that are useful when working with USGS data, such as `callouts` (combines `segments` and `text` into a single call), `error_bar` (allows an error to be given as `offset.up`, `offset.down`, `offset.right`, and `offset.left` and automatically builds an error bar), and the argument `legend.name` (an argument within `points`, `lines`, etc. which does not require colors, linetypes, and other par information to be redefined within the `legend` call).
3939

4040
## Data manipulation
4141

0 commit comments

Comments
 (0)