View source: R/addCircleOfCor.R
addCircleOfCor.ptca | R Documentation |
createFactorMap()
et alia.addCircleOfCor.ptca
:
Add a Circle of Correlation to a PCA-like map
of correlation produced by createFactorMap
et alia.
addCircleOfCor.ptca( color = "darkorchid", alpha = 0.3, size = 1, center = c(0, 0), radius = 1, nPoints = 100 )
color |
( |
alpha |
( |
size |
( |
center |
( |
radius |
( |
nPoints |
( |
The map should should be first created by, for example,
createFactorMap()
(or equivalent functions from
PTCA4CATA
), and then the circle of correlation is added
(see example).
Note: The lastest version of this function is
in the other package
data4PCCAR
(under the name addCircleOfCor
).
nothing
Hervé Abdi
createFactorMap
# Some PCA-like correlations corXY <- matrix(c(.5,-.5, .1,.7, .8,.5, -.1,.9, -.6,-.6), ncol = 2, byrow = TRUE ) # create a map of correlation MapCor <- createFactorMap(corXY, constraints = list(minx = -1, miny = -1, maxx = 1 , maxy = 1) ) # Add a circle to the base Map ggMapWithCircle <- MapCor$zeMap + addCircleOfCor.ptca() # To print the map with the circle: # print(ggMapWithCircle)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.