Skip to content

Commit

Permalink
Merge pull request #168 from taiyun/col_interval
Browse files Browse the repository at this point in the history
update date release v0.88
  • Loading branch information
taiyun authored May 12, 2021
2 parents bf97b76 + 4e632dd commit 23666da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: corrplot
Type: Package
Title: Visualization of a Correlation Matrix
Version: 0.88
Date: 2021-05-10
Date: 2021-05-11
Authors@R: c(
person("Taiyun", "Wei", email = "[email protected]", role = c("cre", "aut")),
person("Viliam", "Simko", email = "[email protected]", role = "aut"),
Expand Down
6 changes: 3 additions & 3 deletions vignettes/corrplot-intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ corrplot(M, type = "lower", order = "hclust", tl.col = "black", tl.srt = 45)
```


# Assign and display color using cl.lim
# Assign and display colors by cl.lim

```{r cl_lim}
# when is.corr=TRUE, cl.lim only affect the color legend
# If you change it, the color is still assigned on [-1, 1]
# If you change it, the color on matrix is still assigned on [-1, 1]
corrplot(M/2)
corrplot(M/2, cl.lim=c(-0.5,0.5))
Expand All @@ -236,7 +236,7 @@ corrplot(M*2, is.corr = FALSE, cl.lim=c(-2, 2))
# for showing the usage of cl.lim, run with warning
corrplot(M*2, is.corr = FALSE, cl.lim=c(-2, 2) * 2)
## matrix in 0.5~0.6, a good example
## matrix in [50, 60]
corrplot(abs(M)*10+50, is.corr = FALSE, cl.lim=c(50, 60), col=col0(10))
```

Expand Down

0 comments on commit 23666da

Please sign in to comment.