Skip to content

Commit 334516c

Browse files
committed
add ... where needed
1 parent 615d12c commit 334516c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

R/plot.fd.R

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ plot.fdPar <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
1717

1818
plot.fd <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
1919
xlim=NULL, ylim=NULL, xlab=NULL,
20-
ylab=NULL, ask=FALSE, nx=NULL, axes=NULL, ...) {
20+
ylab=NULL, ask=FALSE, nx=NULL, axes=NULL,
21+
...) {
2122

2223
# -----------------------------------------------------------------------
2324
# plot for fd class
@@ -40,7 +41,7 @@ plot.fd <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
4041
# must be set up before calling plot by using something such as
4142
# par(mfrow=c(1,nvar),pty="s")
4243

43-
# last modified 16 January 2020
44+
# last modified 2022-02-18 by Spencer Graves
4445

4546
##
4647
## 1. Basic checks
@@ -186,7 +187,8 @@ plot.fd <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
186187
if (!ask) {
187188
matplot(y, fdmat, type="l",
188189
xlim=xlim, ylim=ylim,
189-
xlab=xlab, ylab=ylab, axes=Axes)
190+
xlab=xlab, ylab=ylab, axes=Axes,
191+
...)
190192
if(axFun)
191193
do.call(axList[[1]], axList[-1])
192194
# Ramsay 2008.08.26
@@ -230,7 +232,8 @@ plot.fd <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
230232
for (ivar in 1:nvar) {
231233
matplot (y, fdmat[,,ivar], type="l",
232234
xlim=xlim, ylim=ylim,
233-
xlab=xlab, ylab=ylab, ask=FALSE, axes=Axes, ...)
235+
xlab=xlab, ylab=ylab, ask=FALSE, axes=Axes,
236+
...)
234237
if(axFun)
235238
do.call(axList[[1]], axList[-1])
236239
if (!is.null(varnames)) title(varnames[ivar])
@@ -253,7 +256,7 @@ plot.fd <- function(x, y, Lfdobj=0, href=TRUE, titles=NULL,
253256
if(axFun)
254257
do.call(axList[[1]], axList[-1])
255258
if (!is.null(casenames)) titlestr = casenames[irep]
256-
else titlestr = paste("Case",irep)
259+
else titlestr = paste("Case",irep)
257260
if (!is.null(varnames)) {
258261
titlestr = paste(titlestr," ",varnames[ivar])
259262
} else {

0 commit comments

Comments
 (0)