Skip to content

Commit 8658fc1

Browse files
author
Giles Hooker
committed
Corrected conidence bands in plot.pca.fd
1 parent 7c586c5 commit 8658fc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/plot.pca.fd.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ plot.pca.fd <- function(x, nx = 128, pointplot = TRUE, harm = 0,
5555
#
5656
iharm <- harm[jharm]
5757
if(expand == 0) {
58-
fac <- sqrt(pcafd$values[iharm])
58+
fac <- 2*sqrt(pcafd$values[iharm])
5959
} else {
6060
fac <- expand
6161
}
@@ -123,7 +123,7 @@ plot.pca.fd <- function(x, nx = 128, pointplot = TRUE, harm = 0,
123123
iharm <- harm[jharm]
124124
#
125125
fac <- {
126-
if (expand == 0) sqrt(pcafd$values[iharm])
126+
if (expand == 0) 2*sqrt(pcafd$values[iharm])
127127
else expand
128128
}
129129

0 commit comments

Comments
 (0)