Skip to content

Commit 0818eb6

Browse files
authored
Merge pull request #281 from taiyun/dev
v0.95
2 parents bfb57f5 + 9062795 commit 0818eb6

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: corrplot
22
Type: Package
33
Title: Visualization of a Correlation Matrix
4-
Version: 0.94
5-
Date: 2024-08-02
4+
Version: 0.95
5+
Date: 2024-10-14
66
Authors@R: c(
77
person('Taiyun', 'Wei', email = 'weitaiyun@gmail.com', role = c('cre', 'aut')),
88
person('Viliam', 'Simko', email = 'viliam.simko@gmail.com', role = 'aut'),

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/

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# corrplot 0.94
1+
# corrplot 0.95
2+
3+
## Changes
4+
5+
* Fix #279: Version 0.94 is not assigning significant ocurrences correctly. (thanks, @brenoliisboa and @david-priest)
6+
7+
8+
# corrplot 0.94
29

310
## Changes
411

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)