Comments (5)
Could you provide a reproducible example ?
What are the objects M
, L
and U
?
(I assume M <- cor(mtcars)
)
from corrplot.
Here is the example (using corrplot_0.73)
M <- cor(mtcars)
L <- M-0.01
U <- M+0.01
corrplot::corrplot.mixed(M,lower='number',upper='circle',low=L,upp=U,plotCI='rect')
This results in:
Error in corrplot(corr, add = TRUE, type = "lower", method = lower, diag = (diag == : method shoud be circle or square if draw confidence interval!
from corrplot.
I fixed the error for now, but further API redesign is needed, I think.
Here is the output generated from your example code:
Please confirm whether this is the expected output.
If yes, please create a new issue and suggest the API change.
from corrplot.
This indeed works for me!
It only works for numbers though. Other cases:
corrplot::corrplot.mixed(M,lower='circle',upper='square',low=L,upp=U,plotCI='rect')
(lower boxplot, upper boxplot - expected: lower circle, upper boxplot)
corrplot::corrplot.mixed(M,lower='ellipse',upper='square',low=L,upp=U,plotCI='rect')
(lower empty, upper boxplot - expected: lower ellipse, upper boxplot)
corrplot::corrplot.mixed(M,lower='pie',upper='square',low=L,upp=U,plotCI='rect')
results in:
Error in corrplot(corr, add = TRUE, type = "lower", method = lower, diag = (diag == :
method shoud be circle or square if draw confidence interval!
I am not sure what kind of API redesign you are thinking of because I did not look into the underlying code. It is probably more helpful if you post the api change, because you know what needs to change in the api.
from corrplot.
I'm closing this for now, because it seems that I covered the use-case with my latest fix.
from corrplot.
Related Issues (20)
- Control the square size independently HOT 2
- Specifying Corrplot Scale Breaks HOT 2
- specifying the color range HOT 6
- the size of the symbol circle HOT 1
- corrRect does not draw full rect at the y limits HOT 1
- How to add a title to the legend color bar HOT 1
- Cex and font of p-values
- adding symbols to insignificant correlation
- Add a stroke to the text when using type "number"
- p-values are not correct HOT 1
- tests/testthat/test-corrplot.R false testing
- how to set color-legend text size and text distance?
- drop leading zero for apa format
- correlation matrix as input
- Update for upcoming changes in package seriation
- [Feature] Add legends
- cor.mtest produces wrong p-values for Spearman with pairwise.complete.obs and missing data HOT 1
- option for sized squares in bottom-left corner of cell ?
- change default for mar= when title is not null
- number.digits argument does not display trailing zeros
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corrplot.