Skip to content

Commit

Permalink
improved plot.ds.pca ++
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmus committed Dec 13, 2024
1 parent 5d4ba7a commit 85108ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ plot.ds.pca <- function(x,...,ip=1,
col <- rep('grey',length(mY))
breaks <- attr(eofmap,'colbar')$breaks
## re-scale PCA weights to match the colour scale of the map
mY <- mY*IQR(eofmap)/IQR(c(mY))
mY <- mY*IQR(eofmap,na.rm=TRUE)/IQR(c(mY),na.rm=TRUE)
#mY <- mY*attr(y,'eigenvalues')[ip]
## Add symbols with colours
breaks <- breaks[-1]
Expand Down

0 comments on commit 85108ae

Please sign in to comment.