Skip to content

Commit 7025cfa

Browse files
committed
fix #279
1 parent bfb57f5 commit 7025cfa

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2010-2021
1+
YEAR: 2010-2024
22
COPYRIGHT HOLDER: Capital of Statistics, http://cosx.org/

R/corrplot.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
#' \code{length(col) + 1} when \code{length(col) <=20}; \code{cl.length} is 11
131131
#' when \code{length(col) > 20}
132132
#'
133-
#' @param cl.cex Numeric, cex of number-label in color-legend, passed to
133+
#' @param cl.cex Numeric, text size of number-label in color-legend, passed to
134134
#' \code{\link{colorlegend}}.
135135
#'
136136
#' @param cl.ratio Numeric, to justify the width of color-legend, 0.1~0.2 is
@@ -453,6 +453,10 @@ corrplot = function(corr,
453453
if (order != 'original') {
454454
ord = corrMatOrder(corr, order = order, hclust.method = hclust.method)
455455
corr = corr[ord, ord]
456+
457+
if (!is.null(p.mat)) {
458+
p.mat = p.mat[ord, ord]
459+
}
456460
}
457461

458462
## set up variable names
@@ -897,9 +901,6 @@ corrplot = function(corr,
897901

898902

899903
if (!is.null(p.mat) && insig != 'n') {
900-
if (order != 'original') {
901-
p.mat = p.mat[ord, ord]
902-
}
903904

904905
if(!is.null(rownames(p.mat)) | !is.null(rownames(p.mat))) {
905906
if(!all(colnames(p.mat)==colnames(corr)) |

man/corrplot.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)