Add scale.square to size squares by correlation magnitude#99
Merged
Conversation
New scale.square argument: when TRUE with method = "square", the squares are sized by the absolute correlation (larger square = stronger), on top of the fill color -- the classic corrplot size-scaled square look, mirroring the sized-circle glyph. Default FALSE keeps method = "square" a constant full-cell tile, so every existing call is byte-identical. Has no effect for method = "circle".
Reword the gallery vignette (near-zero squares shrink to small squares, not away - scale_size starts at 4) and note in @param that coefficient labels are drawn at full size and may overflow the smallest squares, as with method = "circle".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New
scale.squareargument (defaultFALSE, appended at the end of the signature). WhenTRUEwithmethod = "square", the squares are sized by the absolute correlation (larger square = stronger), in addition to the fill color, mirroring the sized-circle glyph (ashape = 22point that honorssize, reusingcircle.scaleand the existingabs_corr).FALSEkeepsmethod = "square"a constant full-cell tile — every existing call is byte-identical (64/64 combinations verified vsorigin/master; explicitscale.square = FALSEreproduces the default exactly).methodvalue) somethod's partial-matching is untouched —method="s"/"c"still resolve as before; no existing argument starts with "scale", so no abbreviation clash.method = "circle"(circles are always sized); also sizes a"square"region in the mixed layout.R CMD check --as-cranclean (codoc + vignette OK). No new dependency.